diff --git a/[refs] b/[refs] index 0cf70f5b3073..814148f5c20b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3b9038912828384e38d82409c281124631c8533b +refs/heads/master: d3e17deb1790ee2123e9d11420be6411d1768b47 diff --git a/trunk/include/linux/irqdesc.h b/trunk/include/linux/irqdesc.h index 0b30662bc36c..1595f9176b43 100644 --- a/trunk/include/linux/irqdesc.h +++ b/trunk/include/linux/irqdesc.h @@ -191,6 +191,15 @@ static inline void __set_irq_handler_unlocked(int irq, desc->handle_irq = handler; } +static inline void +irq_set_lockdep_class(unsigned int irq, struct lock_class_key *class) +{ + struct irq_desc *desc = irq_to_desc(irq); + + if (desc) + lockdep_set_class(&desc->lock, class); +} + #ifdef CONFIG_IRQ_PREFLOW_FASTEOI static inline void __irq_set_preflow_handler(unsigned int irq, irq_preflow_handler_t handler)