]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/irq.h
genirq: add unlocked version of set_irq_handler()
[karo-tx-linux.git] / include / linux / irq.h
index efc88538b2bae91a854e9bf3fbffc4832c77d7e4..4669be08061799641263078c61297293f3643eb7 100644 (file)
@@ -339,6 +339,13 @@ extern void
 __set_irq_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained,
                  const char *name);
 
+/* caller has locked the irq_desc and both params are valid */
+static inline void __set_irq_handler_unlocked(int irq,
+                                             irq_flow_handler_t handler)
+{
+       irq_desc[irq].handle_irq = handler;
+}
+
 /*
  * Set a highlevel flow handler for a given IRQ:
  */