aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/irqdesc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/irqdesc.h')
-rw-r--r--include/linux/irqdesc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h
index 0b30662bc36c..1595f9176b43 100644
--- a/include/linux/irqdesc.h
+++ b/include/linux/irqdesc.h
@@ -191,6 +191,15 @@ static inline void __set_irq_handler_unlocked(int irq,
191 desc->handle_irq = handler; 191 desc->handle_irq = handler;
192} 192}
193 193
194static inline void
195irq_set_lockdep_class(unsigned int irq, struct lock_class_key *class)
196{
197 struct irq_desc *desc = irq_to_desc(irq);
198
199 if (desc)
200 lockdep_set_class(&desc->lock, class);
201}
202
194#ifdef CONFIG_IRQ_PREFLOW_FASTEOI 203#ifdef CONFIG_IRQ_PREFLOW_FASTEOI
195static inline void 204static inline void
196__irq_set_preflow_handler(unsigned int irq, irq_preflow_handler_t handler) 205__irq_set_preflow_handler(unsigned int irq, irq_preflow_handler_t handler)