ARM: Use reboot_cpu instead of hardcoding it to 0
authorQais Yousef <qais.yousef@arm.com>
Mon, 23 Mar 2020 13:50:58 +0000 (13:50 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 25 Mar 2020 11:59:33 +0000 (12:59 +0100)
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
arch/arm/kernel/reboot.c

index 58ad1a7..0ce388f 100644 (file)
@@ -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);
 }
 
 /*