summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/kernel
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2022-07-01 22:00:54 +0200
committerMarc Zyngier <maz@kernel.org>2022-07-07 10:38:04 +0200
commit073352e951f60946452da358d64841066c3142ff (patch)
tree3cecbf9913ae1ccb5aa3593bd00f599a467b4a4b /arch/xtensa/kernel
parentgenirq: Refactor accessors to use irq_data_get_affinity_mask (diff)
downloadlinux-073352e951f60946452da358d64841066c3142ff.tar.xz
linux-073352e951f60946452da358d64841066c3142ff.zip
genirq: Add and use an irq_data_update_affinity helper
Some architectures and irqchip drivers modify the cpumask returned by irq_data_get_affinity_mask, usually by copying in to it. This is problematic for uniprocessor configurations, where the affinity mask should be constant, as it is known at compile time. Add and use a setter for the affinity mask, following the pattern of irq_data_update_effective_affinity. This allows the getter function to return a const cpumask pointer. Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com> # Xen bits Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220701200056.46555-7-samuel@sholland.org
Diffstat (limited to 'arch/xtensa/kernel')
0 files changed, 0 insertions, 0 deletions