summaryrefslogtreecommitdiffstats
path: root/target/linux/ifxmips/patches-2.6.30/200-genirq_fix.patch
blob: 1fbd4c86e06c3d8dd6eadeaacde8f3686754efbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: linux-2.6.30.5/kernel/irq/chip.c
===================================================================
--- linux-2.6.30.5.orig/kernel/irq/chip.c	2009-09-02 20:09:15.000000000 +0200
+++ linux-2.6.30.5/kernel/irq/chip.c	2009-09-02 20:09:25.000000000 +0200
@@ -537,6 +537,9 @@
 
 	kstat_incr_irqs_this_cpu(irq, desc);
 
+	if (unlikely(!desc->action || (desc->status & IRQ_DISABLED)))
+		return;
+
 	if (desc->chip->ack)
 		desc->chip->ack(irq);