Thread (5 messages) flat view 5 messages, 2 authors, 2007-10-20
STALE6917d

[PATCH] powerpc: mpic: minor optimization of ipi handler

From: Olof Johansson <hidden>
Date: 2007-10-19 18:44:37
Subsystem: linux for powerpc (32-bit and 64-bit), the rest · Maintainers: Madhavan Srinivasan, Linus Torvalds

Jeff Garzik pointed out that we don't actually have to lookup the mpic
instance since it's passed in as the interrupt handler data for IPIs.


Signed-off-by: Olof Johansson <redacted>
diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c
index e479388..6bf56f4 100644
--- a/arch/powerpc/sysdev/mpic.c
+++ b/arch/powerpc/sysdev/mpic.c
@@ -612,11 +612,10 @@ static inline void mpic_eoi(struct mpic *mpic)
 }
 
 #ifdef CONFIG_SMP
-static irqreturn_t mpic_ipi_action(int irq, void *dev_id)
+static irqreturn_t mpic_ipi_action(int irq, void *data)
 {
-	struct mpic *mpic;
+	struct mpic *mpic = data;
 
-	mpic = mpic_find(irq, NULL);
 	smp_message_recv(mpic_irq_to_hw(irq) - mpic->ipi_vecs[0]);
 
 	return IRQ_HANDLED;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help