[PATCH] genirq: more verbose debugging on unexpected IRQ vectors

One frequent sign of IRQ handling bugs is the appearance of unexpected
vectors.  Print out all the IRQ state in that case.  We dont want this patch
upstream, but it is useful during initial testing.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index 01fc7f7..5a360dd 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -24,6 +24,7 @@
 void fastcall
 handle_bad_irq(unsigned int irq, struct irq_desc *desc, struct pt_regs *regs)
 {
+	print_irq_desc(irq, desc);
 	kstat_this_cpu.irqs[irq]++;
 	ack_bad_irq(irq);
 }
@@ -61,6 +62,7 @@
  */
 static void ack_bad(unsigned int irq)
 {
+	print_irq_desc(irq, irq_desc + irq);
 	ack_bad_irq(irq);
 }