Commit 3d812a0f authored by Marc Zyngier's avatar Marc Zyngier

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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
parent c19f8971
...@@ -185,8 +185,7 @@ int ipi_mux_create(unsigned int nr_ipi, void (*mux_send)(unsigned int cpu)) ...@@ -185,8 +185,7 @@ int ipi_mux_create(unsigned int nr_ipi, void (*mux_send)(unsigned int cpu))
domain->flags |= IRQ_DOMAIN_FLAG_IPI_SINGLE; domain->flags |= IRQ_DOMAIN_FLAG_IPI_SINGLE;
irq_domain_update_bus_token(domain, DOMAIN_BUS_IPI); irq_domain_update_bus_token(domain, DOMAIN_BUS_IPI);
rc = __irq_domain_alloc_irqs(domain, -1, nr_ipi, rc = irq_domain_alloc_irqs(domain, nr_ipi, NUMA_NO_NODE, NULL);
NUMA_NO_NODE, NULL, false, NULL);
if (rc <= 0) { if (rc <= 0) {
pr_err("unable to alloc IRQs from IPI Mux domain\n"); pr_err("unable to alloc IRQs from IPI Mux domain\n");
goto fail_free_domain; goto fail_free_domain;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment