Commit 5efbe6a6 authored by Qais Yousef's avatar Qais Yousef Committed by Thomas Gleixner

arm64: Use reboot_cpu instead of hardconding it to 0

Use `reboot_cpu` variable instead of hardcoding 0 as the reboot cpu in
machine_shutdown().
Signed-off-by: default avatarQais Yousef <qais.yousef@arm.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lkml.kernel.org/r/20200323135110.30522-8-qais.yousef@arm.com
parent d66b16f5
......@@ -145,7 +145,7 @@ void arch_cpu_idle_dead(void)
*/
void machine_shutdown(void)
{
smp_shutdown_nonboot_cpus(0);
smp_shutdown_nonboot_cpus(reboot_cpu);
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment