]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
genirq: Allow NULL affinity for setup_percpu_irq()
authorMarc Zyngier <maz@kernel.org>
Fri, 5 Dec 2025 09:18:14 +0000 (09:18 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 10 Dec 2025 00:47:33 +0000 (09:47 +0900)
commit89acaa5537a29c742d7a6ed7241fc4cf5e2ef818
treeee8124e97a2daf47162569190271661250df4b52
parentcb015814f8b6eebcbb8e46e111d108892c5e6821
genirq: Allow NULL affinity for setup_percpu_irq()

setup_percpu_irq() was forgotten when the percpu_devid infrastructure was
updated to deal with CPU affinities.

In order to keep ignoring users of this legacy API, provide sensible
defaults by setting the affinity to cpu_online_mask if none was provided by
the caller.

Fixes: bdf4e2ac295fe ("genirq: Allow per-cpu interrupt sharing for non-overlapping affinities")
Reported-by: Daniel Thompson <danielt@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://patch.msgid.link/20251205091814.3944205-1-maz@kernel.org
Closes: https://lore.kernel.org/r/aTFozefMQRg7lYxh@aspen.lan
kernel/irq/manage.c