summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-15 10:33:57 +0100
committerThomas Gleixner <tglx@linutronix.de>2011-02-19 12:58:24 +0100
commit77694b408abb8f92195ad5ed6ce5492f1d794c77 (patch)
treea0f7e81a0a155523f69146cd560cc2f49543a99e /kernel
parent781295762defc709a609efc01d8bb065276cd9a2 (diff)
downloadop-kernel-dev-77694b408abb8f92195ad5ed6ce5492f1d794c77.zip
op-kernel-dev-77694b408abb8f92195ad5ed6ce5492f1d794c77.tar.gz
genirq; Add fasteoi irq_chip quirk
Some chips want irq_eoi() only called when an interrupt is actually handled. So they have checks for INPROGRESS and DISABLED in their irq_eoi callbacks. Add a chip flag, which allows to handle that in the generic code. No impact on the fastpath. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/irq/chip.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index 08be5d1..1d3e25e 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -515,9 +515,16 @@ handle_fasteoi_irq(unsigned int irq, struct irq_desc *desc)
}
preflow_handler(desc);
handle_irq_event(desc);
-out:
+
+out_eoi:
desc->irq_data.chip->irq_eoi(&desc->irq_data);
+out_unlock:
raw_spin_unlock(&desc->lock);
+ return;
+out:
+ if (!(desc->irq_data.chip->flags & IRQCHIP_EOI_IF_HANDLED))
+ goto out_eoi;
+ goto out_unlock;
}
/**
OpenPOWER on IntegriCloud