diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-06 19:21:02 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-19 06:58:11 -0500 |
commit | 107781e72192067b95a7d373bfa460434a13c6ae (patch) | |
tree | e451b9dbf1c1cc40bf86a1a87847a4f17c9c47c3 /kernel/irq/chip.c | |
parent | 4912609f228da4a3d2bfbdf0f31de3d9eab2b7f8 (diff) |
genirq: Use handle_irq_event() in handle_simple_irq()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/chip.c')
-rw-r--r-- | kernel/irq/chip.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index 2c30b7844595..809a03fe7e07 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c | |||
@@ -448,9 +448,6 @@ static bool irq_check_poll(struct irq_desc *desc) | |||
448 | void | 448 | void |
449 | handle_simple_irq(unsigned int irq, struct irq_desc *desc) | 449 | handle_simple_irq(unsigned int irq, struct irq_desc *desc) |
450 | { | 450 | { |
451 | struct irqaction *action; | ||
452 | irqreturn_t action_ret; | ||
453 | |||
454 | raw_spin_lock(&desc->lock); | 451 | raw_spin_lock(&desc->lock); |
455 | 452 | ||
456 | if (unlikely(desc->status & IRQ_INPROGRESS)) | 453 | if (unlikely(desc->status & IRQ_INPROGRESS)) |
@@ -460,19 +457,11 @@ handle_simple_irq(unsigned int irq, struct irq_desc *desc) | |||
460 | desc->status &= ~(IRQ_REPLAY | IRQ_WAITING); | 457 | desc->status &= ~(IRQ_REPLAY | IRQ_WAITING); |
461 | kstat_incr_irqs_this_cpu(irq, desc); | 458 | kstat_incr_irqs_this_cpu(irq, desc); |
462 | 459 | ||
463 | action = desc->action; | 460 | if (unlikely(!desc->action || (desc->status & IRQ_DISABLED))) |
464 | if (unlikely(!action || (desc->status & IRQ_DISABLED))) | ||
465 | goto out_unlock; | 461 | goto out_unlock; |
466 | 462 | ||
467 | desc->status |= IRQ_INPROGRESS; | 463 | handle_irq_event(desc); |
468 | raw_spin_unlock(&desc->lock); | ||
469 | 464 | ||
470 | action_ret = handle_IRQ_event(irq, action); | ||
471 | if (!noirqdebug) | ||
472 | note_interrupt(irq, desc, action_ret); | ||
473 | |||
474 | raw_spin_lock(&desc->lock); | ||
475 | desc->status &= ~IRQ_INPROGRESS; | ||
476 | out_unlock: | 465 | out_unlock: |
477 | raw_spin_unlock(&desc->lock); | 466 | raw_spin_unlock(&desc->lock); |
478 | } | 467 | } |