Skip to content

Commit 676dc3c

Browse files
KAGA-KOKOkonradwilk
authored andcommitted
xen: Use IRQF_FORCE_RESUME
Mark the IRQF_NO_SUSPEND interrupts IRQF_FORCE_RESUME and remove the extra walk through the interrupt descriptors. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
1 parent 8aef485 commit 676dc3c

1 file changed

Lines changed: 1 addition & 19 deletions

File tree

‎drivers/xen/events.c‎

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ int bind_ipi_to_irqhandler(enum ipi_vector ipi,
977977
if (irq < 0)
978978
return irq;
979979

980-
irqflags |= IRQF_NO_SUSPEND;
980+
irqflags |= IRQF_NO_SUSPEND | IRQF_FORCE_RESUME;
981981
retval = request_irq(irq, handler, irqflags, devname, dev_id);
982982
if (retval != 0) {
983983
unbind_from_irq(irq);
@@ -1433,7 +1433,6 @@ void xen_poll_irq(int irq)
14331433
void xen_irq_resume(void)
14341434
{
14351435
unsigned int cpu, irq, evtchn;
1436-
struct irq_desc *desc;
14371436

14381437
init_evtchn_cpu_bindings();
14391438

@@ -1453,23 +1452,6 @@ void xen_irq_resume(void)
14531452
restore_cpu_ipis(cpu);
14541453
}
14551454

1456-
/*
1457-
* Unmask any IRQF_NO_SUSPEND IRQs which are enabled. These
1458-
* are not handled by the IRQ core.
1459-
*/
1460-
for_each_irq_desc(irq, desc) {
1461-
if (!desc->action || !(desc->action->flags & IRQF_NO_SUSPEND))
1462-
continue;
1463-
if (desc->status & IRQ_DISABLED)
1464-
continue;
1465-
1466-
evtchn = evtchn_from_irq(irq);
1467-
if (evtchn == -1)
1468-
continue;
1469-
1470-
unmask_evtchn(evtchn);
1471-
}
1472-
14731455
restore_cpu_pirqs();
14741456
}
14751457

0 commit comments

Comments
 (0)