[PATCH 11/13] irqchip/armada-370-xp: Iterate only valid bits of the per-CPU interrupt cause register

Thomas Gleixner tglx at linutronix.de
Sun Jul 28 14:53:53 PDT 2024


On Mon, Jul 15 2024 at 12:51, Marek Behún wrote:
> 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,
> so this may save a couple of cycles in the interrupt handler.

I seriously doubt that it saves a single cycle, but adjusting the limit
is correct by itself.

Thanks,

        tglx



More information about the linux-arm-kernel mailing list