Loading
irqchip/loongson-eiointc: Skip handling if there is no pending irq
mainline inclusion from mainline-v6.9-rc1 commit 3eece72ded7f67776731709702f3d1b9893b6a4f category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I9BTOX CVE: NA -------------------------------- It is one simple optimization in the interrupt dispatch function eiointc_irq_dispatch(). There are 256 IRQs supported for eiointc on Loongson-3A5000 and Loongson-2K2000 platform, 128 IRQs on Loongson-2K0500 platform, eiointc irq handler reads the bitmap and find pending irqs when irq happens. So there are several consecutive iocsr_read64 operations for the all bits to find all pending irqs. If the pending bitmap is zero, it means that there is no pending irq for the this irq bitmap range, we can skip handling to avoid some useless operations such as clearing hw ISR. Signed-off-by:Bibo Mao <maobibo@loongson.cn> Acked-by:
Huacai Chen <chenhuacai@loongson.cn>