Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

genirq: Print threaded handler in spurious debug output

In forced threaded mode (or with an explicit threaded handler) we only
see the primary handler, but not the threaded handler.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Link: http://lkml.kernel.org/r/1306824972-27067-1-git-send-email-sebastian@breakpoint.cc
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

authored by

Sebastian Andrzej Siewior and committed by
Thomas Gleixner
ef26f20c 1fa7b6a2

+5 -4
+5 -4
kernel/irq/spurious.c
··· 201 201 raw_spin_lock_irqsave(&desc->lock, flags); 202 202 action = desc->action; 203 203 while (action) { 204 - printk(KERN_ERR "[<%p>]", action->handler); 205 - print_symbol(" (%s)", 206 - (unsigned long)action->handler); 207 - printk("\n"); 204 + printk(KERN_ERR "[<%p>] %pf", action->handler, action->handler); 205 + if (action->thread_fn) 206 + printk(KERN_CONT " threaded [<%p>] %pf", 207 + action->thread_fn, action->thread_fn); 208 + printk(KERN_CONT "\n"); 208 209 action = action->next; 209 210 } 210 211 raw_spin_unlock_irqrestore(&desc->lock, flags);