Skip to content

Commit

Permalink
ia64: Replace cpu_down() with smp_shutdown_nonboot_cpus()
Browse files Browse the repository at this point in the history
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 <qais.yousef@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Link: https://lkml.kernel.org/r/20200323135110.30522-4-qais.yousef@arm.com
  • Loading branch information
Qais Yousef authored and Thomas Gleixner committed Mar 25, 2020
1 parent 0441a55 commit 1e42176
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions arch/ia64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e42176

Please sign in to comment.