Skip to content

Commit c4de656

Browse files
committed
cpu/hotplug: Make bringup/teardown of smp threads symmetric
The asymmetry caused a warning to trigger if the bootup was stopped in state CPUHP_AP_ONLINE_IDLE. The warning no longer triggers as kthread_park() can now be invoked on already or still parked threads. But there is still no reason to have this be asymmetric. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Acked-by: Ingo Molnar <mingo@kernel.org>
1 parent f048c39 commit c4de656

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎kernel/cpu.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,6 @@ static int takedown_cpu(unsigned int cpu)
754754

755755
/* Park the smpboot threads */
756756
kthread_park(per_cpu_ptr(&cpuhp_state, cpu)->thread);
757-
smpboot_park_threads(cpu);
758757

759758
/*
760759
* Prevent irq alloc/free while the dying cpu reorganizes the
@@ -1332,7 +1331,7 @@ static struct cpuhp_step cpuhp_hp_states[] = {
13321331
[CPUHP_AP_SMPBOOT_THREADS] = {
13331332
.name = "smpboot/threads:online",
13341333
.startup.single = smpboot_unpark_threads,
1335-
.teardown.single = NULL,
1334+
.teardown.single = smpboot_park_threads,
13361335
},
13371336
[CPUHP_AP_IRQ_AFFINITY_ONLINE] = {
13381337
.name = "irq/affinity:online",

0 commit comments

Comments
 (0)