diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2006-06-29 05:24:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-29 13:26:23 -0400 |
commit | a4633adcdbc15ac51afcd0e1395de58cee27cf92 (patch) | |
tree | 5ab714eba77aec7546e862ac6d63a22010819efe /kernel/irq/manage.c | |
parent | 11c869eaf1a9c97ef273f824a697fac017d68286 (diff) |
[PATCH] genirq: add genirq sw IRQ-retrigger
Enable platforms that do not have a hardware-assisted hardirq-resend mechanism
to resend them via a softirq-driven IRQ emulation mechanism.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/irq/manage.c')
-rw-r--r-- | kernel/irq/manage.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 19b438e09f12..cffde4843897 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -118,15 +118,7 @@ void enable_irq(unsigned int irq) | |||
118 | WARN_ON(1); | 118 | WARN_ON(1); |
119 | break; | 119 | break; |
120 | case 1: { | 120 | case 1: { |
121 | unsigned int status = desc->status & ~IRQ_DISABLED; | 121 | check_irq_resend(desc, irq); |
122 | |||
123 | desc->status = status; | ||
124 | if ((status & (IRQ_PENDING | IRQ_REPLAY)) == IRQ_PENDING) { | ||
125 | desc->status = status | IRQ_REPLAY; | ||
126 | if (desc->chip && desc->chip->retrigger) | ||
127 | desc->chip->retrigger(irq); | ||
128 | } | ||
129 | desc->chip->enable(irq); | ||
130 | /* fall-through */ | 122 | /* fall-through */ |
131 | } | 123 | } |
132 | default: | 124 | default: |