diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2007-08-12 15:46:35 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-11-05 09:56:06 -0800 |
commit | 2f21ad6334146d5dd5f4bcbbe3eb0f8d343498b7 (patch) | |
tree | d977f9ed23ba4146fd7bc5b783baef440f1ecc38 | |
parent | 5399b80762e49a543ace1da109537e89e758cea7 (diff) | |
download | lwn-2f21ad6334146d5dd5f4bcbbe3eb0f8d343498b7.tar.gz lwn-2f21ad6334146d5dd5f4bcbbe3eb0f8d343498b7.zip |
genirq: suppress resend of level interrupts
patch 2464286ace55b3abddfb9cc30ab95e2dac1de9a6 in mainline.
Level type interrupts are resent by the interrupt hardware when they are
still active at irq_enable().
Suppress the resend mechanism for interrupts marked as level.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | kernel/irq/resend.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/irq/resend.c b/kernel/irq/resend.c index 5bfeaed7e487..a8046791ba2d 100644 --- a/kernel/irq/resend.c +++ b/kernel/irq/resend.c @@ -62,7 +62,12 @@ void check_irq_resend(struct irq_desc *desc, unsigned int irq) */ desc->chip->enable(irq); - if ((status & (IRQ_PENDING | IRQ_REPLAY)) == IRQ_PENDING) { + /* + * We do not resend level type interrupts. Level type + * interrupts are resent by hardware when they are still + * active. + */ + if ((status & (IRQ_LEVEL | IRQ_PENDING | IRQ_REPLAY)) == IRQ_PENDING) { desc->status = (status & ~IRQ_PENDING) | IRQ_REPLAY; if (!desc->chip || !desc->chip->retrigger || |