aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/interrupt.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
index 266a5f5f57cc..7e63b824833f 100644
--- a/include/linux/interrupt.h
+++ b/include/linux/interrupt.h
@@ -103,6 +103,7 @@ struct irqaction {
103 103
104extern irqreturn_t no_action(int cpl, void *dev_id); 104extern irqreturn_t no_action(int cpl, void *dev_id);
105 105
106#ifdef CONFIG_GENERIC_HARDIRQS
106extern int __must_check 107extern int __must_check
107request_threaded_irq(unsigned int irq, irq_handler_t handler, 108request_threaded_irq(unsigned int irq, irq_handler_t handler,
108 irq_handler_t thread_fn, 109 irq_handler_t thread_fn,
@@ -115,9 +116,13 @@ request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags,
115 return request_threaded_irq(irq, handler, NULL, flags, name, dev); 116 return request_threaded_irq(irq, handler, NULL, flags, name, dev);
116} 117}
117 118
118#ifdef CONFIG_GENERIC_HARDIRQS
119extern void exit_irq_thread(void); 119extern void exit_irq_thread(void);
120#else 120#else
121
122extern int __must_check
123request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags,
124 const char *name, void *dev);
125
121static inline void exit_irq_thread(void) { } 126static inline void exit_irq_thread(void) { }
122#endif 127#endif
123 128