Skip to contentSkip to conversation

parisc: Avoid external interrupts when IPI finishes

PATCH New Helge Deller 1 participant 1 message Aug 14, 2020 PA-RISC architecture

lore
Share & tools
lore

Helge Deller

author maintainer
#0 lore raw

PATCH 1/1 parisc: Avoid external interrupts when IPI finishes

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

arch/parisc/kernel/smp.c +6 -3
index 6271139d2213..cd7694497428 100644
@@ -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;