Commit a7ae4de5 authored by Thomas Gleixner's avatar Thomas Gleixner

genirq: Use handle_irq_event() in handle_fasteoi_irq()

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 1529866c
...@@ -518,9 +518,6 @@ EXPORT_SYMBOL_GPL(handle_level_irq); ...@@ -518,9 +518,6 @@ EXPORT_SYMBOL_GPL(handle_level_irq);
void void
handle_fasteoi_irq(unsigned int irq, struct irq_desc *desc) handle_fasteoi_irq(unsigned int irq, struct irq_desc *desc)
{ {
struct irqaction *action;
irqreturn_t action_ret;
raw_spin_lock(&desc->lock); raw_spin_lock(&desc->lock);
if (unlikely(desc->status & IRQ_INPROGRESS)) if (unlikely(desc->status & IRQ_INPROGRESS))
...@@ -534,26 +531,14 @@ handle_fasteoi_irq(unsigned int irq, struct irq_desc *desc) ...@@ -534,26 +531,14 @@ handle_fasteoi_irq(unsigned int irq, struct irq_desc *desc)
* If its disabled or no action available * If its disabled or no action available
* then mask it and get out of here: * then mask it and get out of here:
*/ */
action = desc->action; if (unlikely(!desc->action || (desc->status & IRQ_DISABLED))) {
if (unlikely(!action || (desc->status & IRQ_DISABLED))) {
desc->status |= IRQ_PENDING; desc->status |= IRQ_PENDING;
mask_irq(desc); mask_irq(desc);
goto out; goto out;
} }
handle_irq_event(desc);
desc->status |= IRQ_INPROGRESS;
desc->status &= ~IRQ_PENDING;
raw_spin_unlock(&desc->lock);
action_ret = handle_IRQ_event(irq, action);
if (!noirqdebug)
note_interrupt(irq, desc, action_ret);
raw_spin_lock(&desc->lock);
desc->status &= ~IRQ_INPROGRESS;
out: out:
desc->irq_data.chip->irq_eoi(&desc->irq_data); desc->irq_data.chip->irq_eoi(&desc->irq_data);
raw_spin_unlock(&desc->lock); raw_spin_unlock(&desc->lock);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment