Commit 89acaa55 authored by Marc Zyngier's avatar Marc Zyngier Committed by Thomas Gleixner
Browse files

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: bdf4e2ac ("genirq: Allow per-cpu interrupt sharing for non-overlapping affinities")
Reported-by: default avatarDaniel Thompson <danielt@kernel.org>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://patch.msgid.link/20251205091814.3944205-1-maz@kernel.org
Closes: https://lore.kernel.org/r/aTFozefMQRg7lYxh@aspen.lan
parent cb015814
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2470,6 +2470,9 @@ int setup_percpu_irq(unsigned int irq, struct irqaction *act)
	if (retval < 0)
		return retval;

	if (!act->affinity)
		act->affinity = cpu_online_mask;

	retval = __setup_irq(irq, desc, act);

	if (retval)