Messages in this thread Patch in this message | | | Date | Wed, 25 Mar 2020 12:06:04 -0000 | From | "tip-bot2 for Qais Yousef" <> | Subject | [tip: smp/core] arm64: Use reboot_cpu instead of hardconding it to 0 |
| |
The following commit has been merged into the smp/core branch of tip:
Commit-ID: 5efbe6a6e1c077b4022d9e89d79543c6106c6e25 Gitweb: https://git.kernel.org/tip/5efbe6a6e1c077b4022d9e89d79543c6106c6e25 Author: Qais Yousef <qais.yousef@arm.com> AuthorDate: Mon, 23 Mar 2020 13:51:00 Committer: Thomas Gleixner <tglx@linutronix.de> CommitterDate: Wed, 25 Mar 2020 12:59:33 +01:00
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
--- arch/arm64/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index 1b9f7b7..3e5a6ad 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); } /*
| |