]> Gentwo Git Trees - linux/.git/commit
irqchip/riscv-imsic: Inline imsic_vector_from_local_id()
authorSamuel Holland <samuel.holland@sifive.com>
Wed, 15 Oct 2025 19:55:14 +0000 (12:55 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Oct 2025 16:17:28 +0000 (18:17 +0200)
commit3a16b053840e04c45325dc313a23986ec7f37a50
tree5f94cc1598f47a5463a50a2445828dff17c57ae5
parent79eaabc61dfbf5a4b680f42d3a113d05333c3960
irqchip/riscv-imsic: Inline imsic_vector_from_local_id()

This function is only called from one place, which is in the interrupt
handling hot path. Inline it to improve code generation and to take
advantage of this_cpu operations. lpriv and imsic->base_domain can never be
NULL because irq_set_chained_handler() is called after they are allocated.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-riscv-imsic-early.c
drivers/irqchip/irq-riscv-imsic-state.c
drivers/irqchip/irq-riscv-imsic-state.h