aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/irq.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-10-12 06:31:46 -0400
committerThomas Gleixner <tglx@linutronix.de>2010-10-12 10:39:07 -0400
commit06f6c3399e9f9ff6eafc200e80f9226c3cee0eaf (patch)
treef4d8fc67194b1a50bfe501634088b3776ca6bbd4 /include/linux/irq.h
parenta98d24b71b6e229965f18dc00d28dc71cb8fe324 (diff)
genirq: Implement irq reservation
Mark a range of interrupts as allocated. In the SPARSE_IRQ=n case we need this to update the bitmap for the legacy irqs so the enumerator via irq_get_next_irq() works. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r--include/linux/irq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index cefacf928b33..096b74d5d0d7 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -400,6 +400,7 @@ static inline struct irq_2_iommu *irq_data_get_iommu(struct irq_data *d)
400 400
401int irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node); 401int irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node);
402void irq_free_descs(unsigned int irq, unsigned int cnt); 402void irq_free_descs(unsigned int irq, unsigned int cnt);
403int irq_reserve_irqs(unsigned int from, unsigned int cnt);
403 404
404static inline int irq_alloc_desc(int node) 405static inline int irq_alloc_desc(int node)
405{ 406{