aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/irq.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r--include/linux/irq.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index 69855b23dff9..6f463606c318 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -372,6 +372,13 @@ set_irq_chained_handler(unsigned int irq,
372extern int create_irq(void); 372extern int create_irq(void);
373extern void destroy_irq(unsigned int irq); 373extern void destroy_irq(unsigned int irq);
374 374
375/* Test to see if a driver has successfully requested an irq */
376static inline int irq_has_action(unsigned int irq)
377{
378 struct irq_desc *desc = irq_desc + irq;
379 return desc->action != NULL;
380}
381
375/* Dynamic irq helper functions */ 382/* Dynamic irq helper functions */
376extern void dynamic_irq_init(unsigned int irq); 383extern void dynamic_irq_init(unsigned int irq);
377extern void dynamic_irq_cleanup(unsigned int irq); 384extern void dynamic_irq_cleanup(unsigned int irq);