aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/chip.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2006-07-03 19:54:59 +1000
committerPaul Mackerras <paulus@samba.org>2006-07-03 19:54:59 +1000
commit5a43a066b11ac2fe84cf67307f20b83bea390f83 (patch)
treed4770958575f4e7592620d9a0d36c431ecceefc9 /kernel/irq/chip.c
parent3e9a69275f23baec86b54febc5dad0b2fc7fb200 (diff)
downloadkernel_samsung_smdk4412-5a43a066b11ac2fe84cf67307f20b83bea390f83.zip
kernel_samsung_smdk4412-5a43a066b11ac2fe84cf67307f20b83bea390f83.tar.gz
kernel_samsung_smdk4412-5a43a066b11ac2fe84cf67307f20b83bea390f83.tar.bz2
[PATCH] genirq: Allow fasteoi handler to retrigger disabled interrupts
Make the fasteoi handler mark disabled interrupts as pending if they happen anyway. This allow implementation of a delayed disable scheme with the fasteoi handler. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'kernel/irq/chip.c')
-rw-r--r--kernel/irq/chip.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index 54105bd..9336f2e 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -261,10 +261,13 @@ handle_level_irq(unsigned int irq, struct irq_desc *desc, struct pt_regs *regs)
* keep it masked and get out of here
*/
action = desc->action;
- if (unlikely(!action || (desc->status & IRQ_DISABLED)))
+ if (unlikely(!action || (desc->status & IRQ_DISABLED))) {
+ desc->status |= IRQ_PENDING;
goto out;
+ }
desc->status |= IRQ_INPROGRESS;
+ desc->status &= ~IRQ_PENDING;
spin_unlock(&desc->lock);
action_ret = handle_IRQ_event(irq, regs, action);