]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] genirq: Allow fasteoi handler to retrigger disabled interrupts
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 3 Jul 2006 09:54:59 +0000 (19:54 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 3 Jul 2006 09:54:59 +0000 (19:54 +1000)
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>
kernel/irq/chip.c

index 54105bdfe20de4609c9f62c6f901e5f0ce658f08..9336f2e89e40210a3265092135c3060f4fcf251c 100644 (file)
@@ -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);