diff options
-rw-r--r-- | kernel/cpu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c index 373e831e0faa..bcee286b7c73 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c | |||
@@ -706,8 +706,9 @@ static int takedown_cpu(unsigned int cpu) | |||
706 | else | 706 | else |
707 | synchronize_rcu(); | 707 | synchronize_rcu(); |
708 | 708 | ||
709 | /* Park the hotplug thread */ | 709 | /* Park the smpboot threads */ |
710 | kthread_park(per_cpu_ptr(&cpuhp_state, cpu)->thread); | 710 | kthread_park(per_cpu_ptr(&cpuhp_state, cpu)->thread); |
711 | smpboot_park_threads(cpu); | ||
711 | 712 | ||
712 | /* | 713 | /* |
713 | * Prevent irq alloc/free while the dying cpu reorganizes the | 714 | * Prevent irq alloc/free while the dying cpu reorganizes the |
@@ -1206,7 +1207,7 @@ static struct cpuhp_step cpuhp_ap_states[] = { | |||
1206 | [CPUHP_AP_SMPBOOT_THREADS] = { | 1207 | [CPUHP_AP_SMPBOOT_THREADS] = { |
1207 | .name = "smpboot:threads", | 1208 | .name = "smpboot:threads", |
1208 | .startup = smpboot_unpark_threads, | 1209 | .startup = smpboot_unpark_threads, |
1209 | .teardown = smpboot_park_threads, | 1210 | .teardown = NULL, |
1210 | }, | 1211 | }, |
1211 | [CPUHP_AP_NOTIFY_ONLINE] = { | 1212 | [CPUHP_AP_NOTIFY_ONLINE] = { |
1212 | .name = "notify:online", | 1213 | .name = "notify:online", |