aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQais Yousef <[email protected]>2020-03-23 13:50:56 +0000
committerThomas Gleixner <[email protected]>2020-03-25 12:59:32 +0100
commit1e42176b4dac328b0be7075c2cebdf2006d31eb3 (patch)
tree034ca54b9cd4e9a1fba06bf1dd5b599e392f7cd0
parent0441a5597c5d02ed7abed1d989eaaa1595dedac5 (diff)
ia64: Replace cpu_down() with smp_shutdown_nonboot_cpus()
Use the new smp_shutdown_nonboot_cpus() instead of using cpu_down() directly. Use reboot_cpu instead of hardcoding the boot CPU to 0. This also prepares to make cpu_up/down() a private interface of the CPU subsystem. Signed-off-by: Qais Yousef <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: Tony Luck <[email protected]> Cc: Fenghua Yu <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
-rw-r--r--arch/ia64/kernel/process.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c
index 968b5f33e725..bf4c0cdb7a25 100644
--- a/arch/ia64/kernel/process.c
+++ b/arch/ia64/kernel/process.c
@@ -646,14 +646,8 @@ cpu_halt (void)
void machine_shutdown(void)
{
-#ifdef CONFIG_HOTPLUG_CPU
- int cpu;
+ smp_shutdown_nonboot_cpus(reboot_cpu);
- for_each_online_cpu(cpu) {
- if (cpu != smp_processor_id())
- cpu_down(cpu);
- }
-#endif
#ifdef CONFIG_KEXEC
kexec_disable_iosapic();
#endif