summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQais Yousef <qais.yousef@arm.com>2020-03-23 14:51:00 +0100
committerThomas Gleixner <tglx@linutronix.de>2020-03-25 12:59:33 +0100
commit5efbe6a6e1c077b4022d9e89d79543c6106c6e25 (patch)
treeebf8988312da591958fd00258949a012436bc1ae
parentarm64: Don't use disable_nonboot_cpus() (diff)
downloadlinux-5efbe6a6e1c077b4022d9e89d79543c6106c6e25.tar.xz
linux-5efbe6a6e1c077b4022d9e89d79543c6106c6e25.zip
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 <qais.yousef@arm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Link: https://lkml.kernel.org/r/20200323135110.30522-8-qais.yousef@arm.com
-rw-r--r--arch/arm64/kernel/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c
index 1b9f7b749d75..3e5a6ad66cbe 100644
--- a/arch/arm64/kernel/process.c
+++ b/arch/arm64/kernel/process.c
@@ -145,7 +145,7 @@ void arch_cpu_idle_dead(void)
*/
void machine_shutdown(void)
{
- smp_shutdown_nonboot_cpus(0);
+ smp_shutdown_nonboot_cpus(reboot_cpu);
}
/*