[PATCH] irqchip: mips-gic: Use for_each_set_bit to iterate over local IRQs

2016-09-13 Thread Paul Burton
The MIPS GIC driver has previously iterated over bits set in a bitmap representing pending local IRQs by calling find_first_bit, clearing that bit then calling find_first_bit again until all bits are clear. If multiple interrupts are pending then this is wasteful, as find_first_bit will have to

[PATCH] irqchip: mips-gic: Use for_each_set_bit to iterate over local IRQs

2016-09-13 Thread Paul Burton
The MIPS GIC driver has previously iterated over bits set in a bitmap representing pending local IRQs by calling find_first_bit, clearing that bit then calling find_first_bit again until all bits are clear. If multiple interrupts are pending then this is wasteful, as find_first_bit will have to