aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorShay Drory <[email protected]>2024-08-06 07:20:44 +0000
committerThomas Gleixner <[email protected]>2024-08-07 15:27:00 +0000
commitedbbaae42a56f9a2b39c52ef2504dfb3fb0a7858 (patch)
tree098bd197179abe9a39b88d8a42263780d340bd37 /scripts/gcc-plugins/randomize_layout_plugin.c
parentLinux 6.11-rc2 (diff)
downloadkernel-edbbaae42a56f9a2b39c52ef2504dfb3fb0a7858.tar.gz
kernel-edbbaae42a56f9a2b39c52ef2504dfb3fb0a7858.zip
genirq/irqdesc: Honor caller provided affinity in alloc_desc()
Currently, whenever a caller is providing an affinity hint for an interrupt, the allocation code uses it to calculate the node and copies the cpumask into irq_desc::affinity. If the affinity for the interrupt is not marked 'managed' then the startup of the interrupt ignores irq_desc::affinity and uses the system default affinity mask. Prevent this by setting the IRQD_AFFINITY_SET flag for the interrupt in the allocator, which causes irq_setup_affinity() to use irq_desc::affinity on interrupt startup if the mask contains an online CPU. [ tglx: Massaged changelog ] Fixes: 45ddcecbfa94 ("genirq: Use affinity hint in irqdesc allocation") Signed-off-by: Shay Drory <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions