]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
genirq: Add single IRQ reservation helper
authorPaul Mundt <lethal@linux-sh.org>
Tue, 26 Oct 2010 07:19:13 +0000 (16:19 +0900)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 26 Oct 2010 08:33:27 +0000 (10:33 +0200)
For cases that wish to reserve a single IRQ at a given place simply
provide a wrapper in to the ranged reservation routine.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
LKML-Reference: <20101026071912.GD4733@linux-sh.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/irq.h

index e9639115dff1b920095b79b92202767cd0ed0537..abde2527c699684f78cf029b82c740af751c26a2 100644 (file)
@@ -412,6 +412,11 @@ static inline void irq_free_desc(unsigned int irq)
        irq_free_descs(irq, 1);
 }
 
+static inline int irq_reserve_irq(unsigned int irq)
+{
+       return irq_reserve_irqs(irq, 1);
+}
+
 #endif /* CONFIG_GENERIC_HARDIRQS */
 
 #endif /* !CONFIG_S390 */