powerpc/xive: Modernize XIVE-IPI domain with an 'alloc' handler
authorCédric Le Goater <clg@kaod.org>
Wed, 31 Mar 2021 14:45:14 +0000 (16:45 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Apr 2021 13:04:15 +0000 (23:04 +1000)
commitfd6db2892ebaa1383a93b4a609c65b96e615510a
tree6e2f5af2135f0b946f6dd0d94b4d6ae99b8c0f10
parent7dcc37b3eff97379b194adb17eb9a8270512dd1d
powerpc/xive: Modernize XIVE-IPI domain with an 'alloc' handler

Instead of calling irq_create_mapping() to map the IPI for a node,
introduce an 'alloc' handler. This is usually an extension to support
hierarchy irq_domains which is not exactly the case for XIVE-IPI
domain. However, we can now use the irq_domain_alloc_irqs() routine
which allocates the IRQ descriptor on the specified node, even better
for cache performance on multi node machines.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210331144514.892250-10-clg@kaod.org
arch/powerpc/sysdev/xive/common.c