summaryrefslogtreecommitdiff
path: root/kernel/irq/handle.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-06-29 13:24:58 +0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-29 21:26:25 +0400
commit43f7775944e40221827e4b3aec43824aa4c4e4a9 (patch)
tree842490e2fe78b8676741d1b012a4256c2224685c /kernel/irq/handle.c
parentf1c2662cbc6a0a9772655649bdf579803d33470b (diff)
downloadlinux-43f7775944e40221827e4b3aec43824aa4c4e4a9.tar.xz
[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>
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r--kernel/irq/handle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index 01fc7f79d74a..5a360dd4331b 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 @@ struct irq_desc irq_desc[NR_IRQS] __cacheline_aligned = {
*/
static void ack_bad(unsigned int irq)
{
+ print_irq_desc(irq, irq_desc + irq);
ack_bad_irq(irq);
}