public inbox for linux-parisc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] parisc: Avoid external interrupts when IPI finishes
@ 2020-08-14 13:14 Helge Deller
  0 siblings, 0 replies; only message in thread
From: Helge Deller @ 2020-08-14 13:14 UTC (permalink / raw)
  To: linux-parisc

No need to allow external interrupts when the IPI loop is going to
finish now.

Signed-off-by: Helge Deller <deller@gmx.de>

diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c
index 6271139d2213..cd7694497428 100644
--- a/arch/parisc/kernel/smp.c
+++ b/arch/parisc/kernel/smp.c
@@ -173,9 +183,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;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-14 13:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-14 13:14 [PATCH] parisc: Avoid external interrupts when IPI finishes Helge Deller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox