diff options
author | Mattias Wallin <mattias.wallin@stericsson.com> | 2010-12-03 13:19:13 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@stericsson.com> | 2011-09-19 15:14:39 +0200 |
commit | 512afa31df40081700d8db927403bb8e52c1fac7 (patch) | |
tree | 58d5f68011271cb6fe98d9b62ae3f17d810f71d6 | |
parent | bc5207116703e9e43ae8e3b1907b1b7835b75da7 (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 d5a3009da71..e5495b907e4 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -244,7 +244,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(); @@ -259,7 +259,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); |