summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQais Yousef <qais.yousef@arm.com>2020-03-23 13:50:58 +0000
committerThomas Gleixner <tglx@linutronix.de>2020-03-25 12:59:33 +0100
commit11ee270e3520129f977751e6174ebf8bf5f08a2f (patch)
tree94bbafffd0f96a3b2dfbd2cb3eb90088cd3cf1e4
parentdddf3578e0d497e66ebe654d0f3258ac20a07e27 (diff)
ARM: Use reboot_cpu instead of hardcoding it to 0
Use `reboot_cpu` variable instead of hardcoding 0 as the reboot cpu in machine_shutdown(). 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-6-qais.yousef@arm.com
-rw-r--r--arch/arm/kernel/reboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/reboot.c b/arch/arm/kernel/reboot.c
index 58ad1a70f770..0ce388f15422 100644
--- a/arch/arm/kernel/reboot.c
+++ b/arch/arm/kernel/reboot.c
@@ -92,7 +92,7 @@ void soft_restart(unsigned long addr)
*/
void machine_shutdown(void)
{
- smp_shutdown_nonboot_cpus(0);
+ smp_shutdown_nonboot_cpus(reboot_cpu);
}
/*