Re: [PATCH 06/13] genirq: Add default_affinity argument to __irq_alloc_descs()
From: Thomas Gleixner <hidden>
Date: 2020-10-06 21:06:27
Also in:
kvm, linux-iommu
From: Thomas Gleixner <hidden>
Date: 2020-10-06 21:06:27
Also in:
kvm, linux-iommu
On Mon, Oct 05 2020 at 16:28, David Woodhouse wrote:
From: David Woodhouse <redacted> It already takes an array of affinities for each individual irq being allocated but that's awkward to allocate and populate in the case where they're all the same and inherited from the irqdomain, so pass the default in separately as a simple cpumask.
So we need another cpumask argument exposed to the world just because it's so hard to extend struct irq_affinity_desc so it supports that use case as well. It's not written in stone that this struct can only support arrays.
Signed-off-by: David Woodhouse <redacted> --- include/linux/irq.h | 10 ++++++---- kernel/irq/devres.c | 8 ++++++-- kernel/irq/irqdesc.c | 10 ++++++++-- kernel/irq/irqdomain.c | 6 +++---
git grep __irq_alloc_descs() might help you to find _all_ instances ...
Thanks,
tglx