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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: Russell King <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent dddf357 commit 11ee270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)