From: Helge Deller Date: Fri, 14 Aug 2020 13:14:12 +0000 (+0200) Subject: parisc: Avoid external interrupts when IPI finishes X-Git-Tag: v5.10-rc1~111^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f4d0d40cd1f19104e4f60537973ff5ac2f90123e;p=thirdparty%2Fkernel%2Flinux.git parisc: Avoid external interrupts when IPI finishes No need to allow external interrupts when the IPI loop is going to finish now. Signed-off-by: Helge Deller --- diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c index 6271139d2213a..10227f667c8a6 100644 --- a/arch/parisc/kernel/smp.c +++ b/arch/parisc/kernel/smp.c @@ -173,9 +173,12 @@ ipi_interrupt(int irq, void *dev_id) this_cpu, which); return IRQ_NONE; } /* Switch */ - /* let in any pending interrupts */ - local_irq_enable(); - local_irq_disable(); + + /* before doing more, let in any pending interrupts */ + if (ops) { + local_irq_enable(); + local_irq_disable(); + } } /* while (ops) */ } return IRQ_HANDLED;