From: Qais Yousef Date: Mon, 23 Mar 2020 13:50:58 +0000 (+0000) Subject: ARM: Use reboot_cpu instead of hardcoding it to 0 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=11ee270e3520129f977751e6174ebf8bf5f08a2f;p=linux.git 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 Signed-off-by: Thomas Gleixner Cc: Russell King Link: https://lkml.kernel.org/r/20200323135110.30522-6-qais.yousef@arm.com --- diff --git a/arch/arm/kernel/reboot.c b/arch/arm/kernel/reboot.c index 58ad1a70f7709..0ce388f154226 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); } /*