# Re: \[PATCH 1/2\] genirq: Extract irq\_set\_affinity\_masks() from devm\_platform\_get\_irqs\_affinity()

- From: Greg Kroah-Hartman \<gregkh@linuxfoundation.org\>
- Date: 2022-02-16 10:57:18 
- List: netdev
- Page: https://ratatoskr.run/netdev/2022/02/1673315
- Thread: https://ratatoskr.run/netdev/2022/02/1673173/t.md

```text
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>
```
