[PATCH v5 2/3] sched: Make raw_spin_rq_unlock() inline
Rik van Riel
riel at surriel.com
Sun Dec 14 15:39:56 PST 2025
On Mon, 2025-12-15 at 03:09 +0800, Xie Yuanbin wrote:
> raw_spin_rq_unlock() is short, and is called in some hot code paths
> such as finish_lock_switch.
>
> Make raw_spin_rq_unlock() inline to optimize performance.
>
> Signed-off-by: Xie Yuanbin <qq570070308 at gmail.com>
> Cc: Thomas Gleixner <tglx at linutronix.de>
> Cc: Rik van Riel <riel at surriel.com>
> Cc: Segher Boessenkool <segher at kernel.crashing.org>
> Cc: David Hildenbrand (Red Hat) <david at kernel.org>
> Cc: Peter Zijlstra <peterz at infradead.org>
> Cc: H. Peter Anvin (Intel) <hpa at zytor.com>
Reviewed-by: Rik van Riel <riel at surriel.com>
--
All Rights Reversed.
More information about the linux-riscv
mailing list