summaryrefslogtreecommitdiffstats
path: root/kernel/irq/manage.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2006-06-29 02:24:48 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-29 10:26:23 -0700
commita4633adcdbc15ac51afcd0e1395de58cee27cf92 (patch)
tree5ab714eba77aec7546e862ac6d63a22010819efe /kernel/irq/manage.c
parent11c869eaf1a9c97ef273f824a697fac017d68286 (diff)
downloadlinux-a4633adcdbc15ac51afcd0e1395de58cee27cf92.tar.gz
linux-a4633adcdbc15ac51afcd0e1395de58cee27cf92.tar.bz2
linux-a4633adcdbc15ac51afcd0e1395de58cee27cf92.zip
[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.c10
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)
WARN_ON(1);
break;
case 1: {
- unsigned int status = desc->status & ~IRQ_DISABLED;
-
- desc->status = status;
- if ((status & (IRQ_PENDING | IRQ_REPLAY)) == IRQ_PENDING) {
- desc->status = status | IRQ_REPLAY;
- if (desc->chip && desc->chip->retrigger)
- desc->chip->retrigger(irq);
- }
- desc->chip->enable(irq);
+ check_irq_resend(desc, irq);
/* fall-through */
}
default: