cpu/hotplug: Make bringup/teardown of smp threads symmetric
authorThomas Gleixner <tglx@linutronix.de>
Tue, 29 May 2018 17:05:25 +0000 (19:05 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 21 Jun 2018 12:20:57 +0000 (14:20 +0200)
commitc4de65696d865c225fda3b9913b31284ea65ea96
treeda7dc678d2b04e58bc8fb06140ae5d72e82a752f
parentf048c399e0f7490ab7296bc2c255d37eb14a9675
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>
kernel/cpu.c