genirq: Use raw_spinlock_irq() in irq_set_affinity_notifier()

Since irq_set_affinity_notifier() may sleep, interrupts are enabled. So
raw_spinlock_irqsave() can be replaced with raw_spinlock_irq().

Signed-off-by: Chengkaitao <chengkaitao@kylinos.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://patch.msgid.link/20251118012754.61805-1-pilgrimtao@gmail.com
This commit is contained in:
Chengkaitao
2025-11-18 09:27:54 +08:00
committed by Thomas Gleixner
parent 51d0656959
commit 9d3faec60b

View File

@@ -547,7 +547,7 @@ int irq_set_affinity_notifier(unsigned int irq, struct irq_affinity_notify *noti
INIT_WORK(&notify->work, irq_affinity_notify);
}
scoped_guard(raw_spinlock_irqsave, &desc->lock) {
scoped_guard(raw_spinlock_irq, &desc->lock) {
old_notify = desc->affinity_notify;
desc->affinity_notify = notify;
}