irqchip/armada-370-xp: Iterate only valid bits of the per-CPU interrupt cause register
authorMarek Behún <kabel@kernel.org>
Wed, 7 Aug 2024 16:41:02 +0000 (18:41 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 8 Aug 2024 15:15:01 +0000 (17:15 +0200)
commit4042a965a5e62c8d298d642cbf72b14f41687319
treeacaa6d24b25b3b0af13316dd0f6bf923762a37cc
parent2793f68749c1fb035e255cdffb10108ef023f608
irqchip/armada-370-xp: Iterate only valid bits of the per-CPU interrupt cause register

Use MPIC_PER_CPU_IRQS_NR (29) bound instead of BITS_PER_LONG (32) when
iterating the bits of the per-CPU interrupt cause register, since there
are only 29 per-CPU interrupts. The top 3 bits are always zero anyway.

Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-armada-370-xp.c