]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
genirq: stackdump after the "Trying to free already-free IRQ" message
authorIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:24 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:24 +0000 (13:33 +0100)
these bugs are harder to find than they seem, a stackdump helps.

make it dependent on CONFIG_DEBUG_SHIRQ so that people can turn it off
if it annoys them.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/manage.c

index 1f314221d534be091d809628b39f12ccba4e997e..438a01464287fc391b8da015fbe7c80a666c4928 100644 (file)
@@ -479,6 +479,9 @@ void free_irq(unsigned int irq, void *dev_id)
                        return;
                }
                printk(KERN_ERR "Trying to free already-free IRQ %d\n", irq);
+#ifdef CONFIG_DEBUG_SHIRQ
+               dump_stack();
+#endif
                spin_unlock_irqrestore(&desc->lock, flags);
                return;
        }