Skip to content

Commit

Permalink
genirq: Use handle_irq_event() in handle_fasteoi_irq()
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner committed Feb 19, 2011
1 parent 1529866 commit a7ae4de
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions kernel/irq/chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,6 @@ EXPORT_SYMBOL_GPL(handle_level_irq);
void
handle_fasteoi_irq(unsigned int irq, struct irq_desc *desc)
{
struct irqaction *action;
irqreturn_t action_ret;

raw_spin_lock(&desc->lock);

if (unlikely(desc->status & IRQ_INPROGRESS))
Expand All @@ -534,26 +531,14 @@ handle_fasteoi_irq(unsigned int irq, struct irq_desc *desc)
* If its disabled or no action available
* then mask it and get out of here:
*/
action = desc->action;
if (unlikely(!action || (desc->status & IRQ_DISABLED))) {
if (unlikely(!desc->action || (desc->status & IRQ_DISABLED))) {
desc->status |= IRQ_PENDING;
mask_irq(desc);
goto out;
}

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;
handle_irq_event(desc);
out:
desc->irq_data.chip->irq_eoi(&desc->irq_data);

raw_spin_unlock(&desc->lock);
}

Expand Down

0 comments on commit a7ae4de

Please sign in to comment.