MIPS: SGI-IP27: micro-optimize arch_init_irq()
authorYury Norov <yury.norov@gmail.com>
Sat, 13 Apr 2024 18:49:13 +0000 (11:49 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 15 Apr 2024 08:29:36 +0000 (10:29 +0200)
commit40e20fbccfb722f219ab8d3ff1edde99e4a7c46c
tree9cc432b547962a9f0bf01be31efa70d297144ab4
parentb8f8e5a691ba75051a841e68ace5817d5c368fd9
MIPS: SGI-IP27: micro-optimize arch_init_irq()

The function sets adjasted groups of bits in hub_irq_map by using
for-loops. There's a bitmap_set() function dedicated to do this.

Because [0, CPU_CALL_B_IRQ] and [NI_BRDCAST_ERR_A, MSC_PANIC_INTR]
ranges belong to the same machine word, bitmap_set() would boil down
to an inline wrapper in both cases, avoiding generating a loop, whth
the associate overhead.

Signed-off-by: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/sgi-ip27/ip27-irq.c