Skip to contentSkip to conversation

generic irq updates

GIT PULL Thomas Gleixner 1 participant 1 message May 2, 2008 IRQ

lore
Share & tools
lore
#0 lore raw

Linus,

please pull gerneric irq updates from:

ssh://master.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-genirq.git master

Thanks,

tglx

---

Thomas Gleixner (1):
genirq: reenable a nobody cared disabled irq when a new driver arrives

 include/linux/irq.h   |    1 +
 kernel/irq/manage.c   |   49 ++++++++++++++++++++++++++++++++-----------------
 kernel/irq/spurious.c |    4 ++--
 3 files changed, 35 insertions(+), 19 deletions(-)
include/linux/irq.h +1 -0
index 1883a85..552e0ec 100644
@@ -61,6 +61,7 @@ typedef	void (*irq_flow_handler_t)(unsigned int irq,
 #define IRQ_WAKEUP		0x00100000	/* IRQ triggers system wakeup */
 #define IRQ_MOVE_PENDING	0x00200000	/* need to re-target IRQ destination */
 #define IRQ_NO_BALANCING	0x00400000	/* IRQ is excluded from balancing */
+#define IRQ_SPURIOUS_DISABLED	0x00800000	/* IRQ was disabled by the spurious trap */
 
 #ifdef CONFIG_IRQ_PER_CPU
 # define CHECK_IRQ_PER_CPU(var) ((var) & IRQ_PER_CPU)
kernel/irq/manage.c +32 -17

73 lines not on this page · raw message

kernel/irq/spurious.c +2 -2
index 088dabb..c66d3f1 100644
@@ -209,8 +209,8 @@ void note_interrupt(unsigned int irq, struct irq_desc *desc,
 		 * Now kill the IRQ
 		 */
 		printk(KERN_EMERG "Disabling IRQ #%d\n", irq);
-		desc->status |= IRQ_DISABLED;
-		desc->depth = 1;
+		desc->status |= IRQ_DISABLED | IRQ_SPURIOUS_DISABLED;
+		desc->depth++;
 		desc->chip->disable(irq);
 	}
 	desc->irqs_unhandled = 0;