There's no need to iterative over every single irq_desc when we can
already work out which IRQs have a backing descriptor via the shiny new
for_each_active_irq(). Switch to that instead.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
if (d->state.event != PM_EVENT_FREEZE)
break;
- for_each_irq_nr(irq) {
+ for_each_active_irq(irq) {
desc = irq_to_desc(irq);
- if (!desc)
- continue;
-
data = irq_get_irq_data(irq);
chip = irq_data_get_irq_chip(data);
break;
case PM_EVENT_SUSPEND:
/* enable wakeup irqs belonging to this intc controller */
- for_each_irq_nr(irq) {
+ for_each_active_irq(irq) {
desc = irq_to_desc(irq);
- if (!desc)
- continue;
-
data = irq_get_irq_data(irq);
chip = irq_data_get_irq_chip(data);