On Wed, Feb 16, 2022 at 09:08:44AM +0000, Marc Zyngier wrote:
In order to better support drivers that deal with interrupts in a more
"hands-on" way, extract the core of devm_platform_get_irqs_affinity()
and expose it as irq_set_affinity_masks().
This helper allows a driver to provide a set of wired interrupts that
are to be configured as managed interrupts. As with the original helper,
this is exported as EXPORT_SYMBOL_GPL.
Signed-off-by: Marc Zyngier <maz@kernel.org>
---
drivers/base/platform.c | 20 +++-----------------
include/linux/interrupt.h | 8 ++++++++
kernel/irq/affinity.c | 27 +++++++++++++++++++++++++++
3 files changed, 38 insertions(+), 17 deletions(-)
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>