irqchip/loongson-eiointc: Skip handling if there is no pending interrupt
authorBibo Mao <maobibo@loongson.cn>
Tue, 30 Jan 2024 08:27:21 +0000 (16:27 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 13 Feb 2024 09:53:14 +0000 (10:53 +0100)
commit3eece72ded7f67776731709702f3d1b9893b6a4f
tree7c2bf1345a59971b9dc50242dddfc6fb1d84a2dc
parentaafd753555c0ecb9c7ce11ff14429a34c8c0a14b
irqchip/loongson-eiointc: Skip handling if there is no pending interrupt

eiointc_irq_dispatch() iterates over the pending bit registers of the
interrupt controller and evaluates the result even if there is no interrupt
pending in a particular 64bit chunk.

Skip handling and especially the pointless write back for clearing the
non-pending bits if a chunk is empty.

[ tglx: Massaged changelog ]

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Huacai Chen <chenhuacai@loongson.cn>
Link: https://lore.kernel.org/r/20240130082722.2912576-3-maobibo@loongson.cn
drivers/irqchip/irq-loongson-eiointc.c