Skip to content

Commit 3d812a0

Browse files
author
Marc Zyngier
committed
genirq/ipi-mux: Use irq_domain_alloc_irqs()
Using __irq_domain_alloc_irqs() is an unnecessary complexity. Use irq_domain_alloc_irqs(), which is simpler and makes the code more readable. Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
1 parent c19f897 commit 3d812a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kernel/irq/ipi-mux.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ int ipi_mux_create(unsigned int nr_ipi, void (*mux_send)(unsigned int cpu))
185185
domain->flags |= IRQ_DOMAIN_FLAG_IPI_SINGLE;
186186
irq_domain_update_bus_token(domain, DOMAIN_BUS_IPI);
187187

188-
rc = __irq_domain_alloc_irqs(domain, -1, nr_ipi,
189-
NUMA_NO_NODE, NULL, false, NULL);
188+
rc = irq_domain_alloc_irqs(domain, nr_ipi, NUMA_NO_NODE, NULL);
190189
if (rc <= 0) {
191190
pr_err("unable to alloc IRQs from IPI Mux domain\n");
192191
goto fail_free_domain;

0 commit comments

Comments
 (0)