Commit 0e664e9
padata: Remove cpu online check from cpu add and removal
[ Upstream commit 73117ea ]
During the CPU offline process, the dying CPU is cleared from the
cpu_online_mask in takedown_cpu(). After this step, various CPUHP_*_DEAD
callbacks are executed to perform cleanup jobs for the dead CPU, so this
cpu online check in padata_cpu_dead() is unnecessary.
Similarly, when executing padata_cpu_online() during the
CPUHP_AP_ONLINE_DYN phase, the CPU has already been set in the
cpu_online_mask, the action even occurs earlier than the
CPUHP_AP_ONLINE_IDLE stage.
Remove this unnecessary cpu online check in __padata_add_cpu() and
__padata_remove_cpu().
Signed-off-by: Chuyi Zhou <zhouchuyi@bytedance.com>
Acked-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: c8c4a29 ("padata: Put CPU offline callback in ONLINE section to allow failure")
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 39024f5 commit 0e664e9
1 file changed
Lines changed: 8 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
| 748 | + | |
752 | 749 | | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
757 | 753 | | |
758 | 754 | | |
759 | 755 | | |
760 | 756 | | |
761 | 757 | | |
762 | 758 | | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
772 | 762 | | |
773 | | - | |
| 763 | + | |
774 | 764 | | |
775 | 765 | | |
776 | 766 | | |
| |||
0 commit comments