Skip to content

Commit 5efbe6a

Browse files
Qais YousefKAGA-KOKO
authored andcommitted
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: Qais Yousef <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent d66b16f commit 5efbe6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/process.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void arch_cpu_idle_dead(void)
145145
*/
146146
void machine_shutdown(void)
147147
{
148-
smp_shutdown_nonboot_cpus(0);
148+
smp_shutdown_nonboot_cpus(reboot_cpu);
149149
}
150150

151151
/*

0 commit comments

Comments
 (0)