From 68d8610f09c8125c3a6b34b49b6269afc148c263 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 21 Apr 2003 09:05:40 -0700 Subject: [PATCH] Fix irq event debug print-out, and add stack dump which can give a clue about what the context was that might have caused the spurious interrupt. --- arch/i386/kernel/irq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/i386/kernel/irq.c b/arch/i386/kernel/irq.c index 9b266cc9c9c20..d9719e0e01416 100644 --- a/arch/i386/kernel/irq.c +++ b/arch/i386/kernel/irq.c @@ -221,13 +221,14 @@ int handle_IRQ_event(unsigned int irq, struct pt_regs * regs, struct irqaction * local_irq_disable(); if (retval != 1) { static int count = 100; - while (count) { + if (count) { count--; printk(retval ? "irq event %d: bogus retval mask %x\n" : "irq %d: nobody cared!\n", irq, retval); + dump_stack(); } } -- 2.53.0