[PATCH v3 2/3] Make raw_spin_rq_unlock inline

Thomas Gleixner tglx at linutronix.de
Fri Nov 14 11:44:13 PST 2025


On Thu, Nov 13 2025 at 18:52, Xie Yuanbin wrote:

> This function is short, and is called in some critical hot code paths,
> such as finish_lock_switch.
>
> Make it inline to optimize performance.

> +static inline void raw_spin_rq_unlock(struct rq *rq)

That inline does not guarantee that the compiler actually inlines
it. clang is obnoxiously bad at that.



More information about the linux-riscv mailing list