aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-16 11:43:50 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-16 11:46:49 -0500
commit74296a8ed6aa3c5bf672808ada690de7ba323ecc (patch)
treebaf9aa0f86e27d33dff0c4d0e33774fe80c908bc /include
parent5a2dd72abdae75ea2960145e0549635ce4e0be96 (diff)
irq: provide debug_poll_all_shared_irqs() method under CONFIG_DEBUG_SHIRQ
Provide a shared interrupt debug facility under CONFIG_DEBUG_SHIRQ: it uses the existing irqpoll facilities to iterate through all registered interrupt handlers and call those which can handle shared IRQ lines. This can be handy for suspend/resume debugging: if we call this function early during resume we can trigger crashes in those drivers which have incorrect assumptions about when exactly their ISRs will be called during suspend/resume. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r--include/linux/interrupt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
index 9127f6b51a39..468e3a25a4a1 100644
--- a/include/linux/interrupt.h
+++ b/include/linux/interrupt.h
@@ -462,6 +462,12 @@ static inline void init_irq_proc(void)
462} 462}
463#endif 463#endif
464 464
465#if defined(CONFIG_GENERIC_HARDIRQS) && defined(CONFIG_DEBUG_SHIRQ)
466extern void debug_poll_all_shared_irqs(void);
467#else
468static inline void debug_poll_all_shared_irqs(void) { }
469#endif
470
465int show_interrupts(struct seq_file *p, void *v); 471int show_interrupts(struct seq_file *p, void *v);
466 472
467struct irq_desc; 473struct irq_desc;