Message ID | 20170204124959.76d786f2@roar.ozlabs.ibm.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 81256522985d..e1a429251a7d 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -448,8 +448,6 @@ static int smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us) if (unlikely(!smp_ops)) return 0; - get_online_cpus(); - /* Take the nmi_ipi_busy count/lock with interrupts hard disabled */ nmi_ipi_lock_start(&flags); while (nmi_ipi_busy_count) { @@ -491,8 +489,6 @@ static int smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us) nmi_ipi_busy_count--; nmi_ipi_unlock_end(&flags); - put_online_cpus(); - return ret; } #endif /* CONFIG_NMI_IPI */