ARM: Don't use disable_nonboot_cpus()
authorQais Yousef <qais.yousef@arm.com>
Mon, 23 Mar 2020 13:50:57 +0000 (13:50 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 25 Mar 2020 11:59:32 +0000 (12:59 +0100)
commitdddf3578e0d497e66ebe654d0f3258ac20a07e27
treed7dfba1cdfa66f528c1cee808077ff3dac69e025
parent1e42176b4dac328b0be7075c2cebdf2006d31eb3
ARM: Don't use disable_nonboot_cpus()

disable_nonboot_cpus() is not safe to use when doing machine_down(),
because it relies on freeze_secondary_cpus() which in turn is
a suspend/resume related freeze and could abort if the logic detects any
pending activities that can prevent finishing the offlining process.

Beside disable_nonboot_cpus() is dependent on CONFIG_PM_SLEEP_SMP which
is an othogonal config to rely on to ensure this function works
correctly.

Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Russell King <linux@armlinux.org.uk>
Link: https://lkml.kernel.org/r/20200323135110.30522-5-qais.yousef@arm.com
arch/arm/kernel/reboot.c