]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/tsc: Handle CLOCK_SOURCE_VALID_FOR_HRES correctly
authorThomas Gleixner <tglx@kernel.org>
Fri, 23 Jan 2026 23:17:55 +0000 (00:17 +0100)
committerThomas Gleixner <tglx@kernel.org>
Thu, 12 Mar 2026 11:23:27 +0000 (12:23 +0100)
commit79ccb0693a99e1b91eba95c6bd32a3e02be156ae
tree9974def962b3ce2663e0a67089b5a1b3cb7f9f87
parentced7072a3ad65698f0ad378c8f8566379fe50723
x86/tsc: Handle CLOCK_SOURCE_VALID_FOR_HRES correctly

Unconditionally setting the CLOCK_SOURCE_VALID_FOR_HRES for the real TSC
clocksource is wrong as there is no guarantee that the early TSC was
validated for high resolution mode.

Set the flag only when the early TSC was validated as otherwise the
clocksource selection might enable high resolution mode with a TSC of
unknown quality and possibly no way to back out once it is discovered to be
unsuitable.

Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260123231521.790598171@kernel.org
arch/x86/kernel/tsc.c