aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/irqdesc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/irq/irqdesc.c')
-rw-r--r--kernel/irq/irqdesc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index 6312a2c83971..2e7e94ef64da 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -463,6 +463,17 @@ err:
463 return ret; 463 return ret;
464} 464}
465 465
466/**
467 * irq_get_next_irq - get next allocated irq number
468 * @offset: where to start the search
469 *
470 * Returns next irq number after offset or nr_irqs if none is found.
471 */
472unsigned int irq_get_next_irq(unsigned int offset)
473{
474 return find_next_bit(allocated_irqs, nr_irqs, offset);
475}
476
466/* Statistics access */ 477/* Statistics access */
467void clear_kstat_irqs(struct irq_desc *desc) 478void clear_kstat_irqs(struct irq_desc *desc)
468{ 479{