Skip to content

Commit 11ee270

Browse files
Qais YousefKAGA-KOKO
authored andcommitted
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
1 parent dddf357 commit 11ee270

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/arm/kernel/reboot.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void soft_restart(unsigned long addr)
9292
*/
9393
void machine_shutdown(void)
9494
{
95-
smp_shutdown_nonboot_cpus(0);
95+
smp_shutdown_nonboot_cpus(reboot_cpu);
9696
}
9797

9898
/*

0 commit comments

Comments
 (0)