genirq: Implement sane enumeration
Use the allocator bitmap to lookup active interrupts. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
13bfe99e09
commit
a98d24b71b
2 changed files with 16 additions and 0 deletions
|
@ -463,6 +463,17 @@ err:
|
|||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* irq_get_next_irq - get next allocated irq number
|
||||
* @offset: where to start the search
|
||||
*
|
||||
* Returns next irq number after offset or nr_irqs if none is found.
|
||||
*/
|
||||
unsigned int irq_get_next_irq(unsigned int offset)
|
||||
{
|
||||
return find_next_bit(allocated_irqs, nr_irqs, offset);
|
||||
}
|
||||
|
||||
/* Statistics access */
|
||||
void clear_kstat_irqs(struct irq_desc *desc)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue