]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86: Inline TSC reads in timekeeping
authorThomas Gleixner <tglx@kernel.org>
Tue, 24 Feb 2026 16:36:24 +0000 (17:36 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 27 Feb 2026 15:40:07 +0000 (16:40 +0100)
commitb27801189f7fc97a960a96a63b78dcabbb67a52f
treee6861b48201942ecdb079230597a8861626c7142
parent2e27beeb66e43f3b84aef5a07e486a5d50695c06
x86: Inline TSC reads in timekeeping

Avoid the overhead of the indirect call for a single instruction to read
the TSC.

Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260224163429.741886362@kernel.org
arch/x86/Kconfig
arch/x86/include/asm/clock_inlined.h [new file with mode: 0644]
arch/x86/kernel/tsc.c