diff options
author | Mattias Wallin <mattias.wallin@stericsson.com> | 2010-12-03 13:19:13 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 11:01:07 +0200 |
commit | 4137ba67f41cc774da35446f6068f33fab46707f (patch) | |
tree | d0a9dba230504e6c040dbfa35200df0215abe3ea | |
parent | 20ca173468656b2a8e7505e4eab7acc917f927bc (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>
-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 3914c1e03cf..468bcbc5db4 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -266,7 +266,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(); @@ -281,7 +281,11 @@ void handle_nested_irq(unsigned int irq) irqd_set(&desc->irq_data, IRQD_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); |