ia64: kexec: fix the primary cpu passed to smp_shutdown_nonboot_cpus()
Subsystems (2)
PATCH 1/3 ia64: kexec: fix the primary cpu passed to smp_shutdown_nonboot_cpus()
kernel_kexec()->migrate_to_reboot_cpu() has already pinned the reboot thread on either reboot_cpu or the first online cpu.
So machine_shutdown() should pass smp_processor_id() as the primary cpu to smp_shutdown_nonboot_cpus().
--- arch/ia64/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/ia64/kernel/process.c +1 -1
@@ -575,7 +575,7 @@ cpu_halt (void)void machine_shutdown (void ) { -smp_shutdown_nonboot_cpus (reboot_cpu); +smp_shutdown_nonboot_cpus (smp_processor_id ());#ifdef CONFIG_KEXEC kexec_disable_iosapic ();
Signature · 1 line
2.31.1
PATCH 2/3 arm: kexec: fix the primary cpu passed to smp_shutdown_nonboot_cpus()
kernel_kexec()->migrate_to_reboot_cpu() has already pinned the reboot thread on either reboot_cpu or the first online cpu.
So machine_shutdown() should pass smp_processor_id() as the primary cpu to smp_shutdown_nonboot_cpus().
--- arch/arm/kernel/reboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/kernel/reboot.c +1 -1
@@ -91,7 +91,7 @@ void soft_restart(unsigned long addr)*/ void machine_shutdown (void ) { -smp_shutdown_nonboot_cpus (reboot_cpu); +smp_shutdown_nonboot_cpus (smp_processor_id ()); }/*
Signature · 7 lines
2.31.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 3/3 arm64: kexec: fix the primary cpu passed to smp_shutdown_nonboot_cpus()
In reply to Pingfan Liukernel_kexec()->migrate_to_reboot_cpu() has already pinned the reboot thread on either reboot_cpu or the first online cpu.
So machine_shutdown() should pass smp_processor_id() as the primary cpu to smp_shutdown_nonboot_cpus().
--- arch/arm64/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/process.c +1 -1
@@ -85,7 +85,7 @@ void arch_cpu_idle_dead(void)*/ void machine_shutdown (void ) { -smp_shutdown_nonboot_cpus (reboot_cpu); +smp_shutdown_nonboot_cpus (smp_processor_id ()); }/*
Signature · 7 lines
2.31.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel