WSL2-Linux-Kernel/drivers/sh
Samuel Holland c775a52461 genirq: Add and use an irq_data_update_affinity helper
[ Upstream commit 073352e951 ]

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
Stable-dep-of: feabecaff5 ("genirq/ipi: Fix NULL pointer deref in irq_data_get_affinity_mask()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-11 13:57:31 +01:00
..
clk
intc genirq: Add and use an irq_data_update_affinity helper 2023-03-11 13:57:31 +01:00
maple maple: fix wrong return value of maple_bus_init(). 2021-11-25 09:48:31 +01:00
superhyway sh: superhyway: Simplify check in remove callback 2021-08-05 14:37:03 +02:00
Kconfig
Makefile
pm_runtime.c