diff options
author | Mattias Wallin <mattias.wallin@stericsson.com> | 2010-12-03 13:19:13 +0100 |
---|---|---|
committer | Robert Marklund <robert.marklund@stericsson.com> | 2011-05-04 18:05:33 +0200 |
commit | 1771ab9eb48428061432f51784574882878fcbc6 (patch) | |
tree | 14a5b1272e8d832128b5b1f09b576e241991a678 /kernel | |
parent | bd2f0e2cfaa6e76f97eed6c5ee434eb1ec0476fc (diff) |
irq: Allow threaded and nested irqs to be shared
This patch will make the threaded nested handler run all the registered
shared action handlers and not just the first registered.
Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
Change-Id: Ib484a2fa50186dbc05aedbcb9936518302ab801b
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/10494
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/chip.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index baa5c4acad8..cd0c717afdc 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -419,7 +419,7 @@ void handle_nested_irq(unsigned int irq) { struct irq_desc *desc = irq_to_desc(irq); struct irqaction *action; - irqreturn_t action_ret; + irqreturn_t action_ret = IRQ_NONE; might_sleep(); @@ -434,7 +434,11 @@ void handle_nested_irq(unsigned int irq) desc->status |= IRQ_INPROGRESS; raw_spin_unlock_irq(&desc->lock); - action_ret = action->thread_fn(action->irq, action->dev_id); + do { + action_ret |= action->thread_fn(action->irq, action->dev_id); + action = action->next; + } while (action); + if (!noirqdebug) note_interrupt(irq, desc, action_ret); |