Skip to content

Commit

Permalink
ARM: Use reboot_cpu instead of hardcoding it to 0
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Qais Yousef authored and Thomas Gleixner committed Mar 25, 2020
1 parent dddf357 commit 11ee270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit 11ee270

Please sign in to comment.