mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
genirq: Add single IRQ reservation helper
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>
This commit is contained in:
parent
2656c36699
commit
639bd12f77
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user