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
This commit is contained in:
Qais Yousef 2020-03-23 13:50:58 +00:00 committed by Thomas Gleixner
parent dddf3578e0
commit 11ee270e35

View 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);
}
/*