]> git.hungrycats.org Git - linux/commit
x86/cpu: Remove unused !CONFIG_X86_TSC code
authorIngo Molnar <mingo@kernel.org>
Mon, 27 Apr 2026 06:07:02 +0000 (08:07 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 11 Jun 2026 08:25:34 +0000 (10:25 +0200)
commit5c75b98aa9cd5b1725b76999d794dc72ebd7a54a
treec724f10fec5cb43d6652caa47f5958ac2ae1eff2
parenteabf869d795173a107ad8965e4fb1711d82544b6
x86/cpu: Remove unused !CONFIG_X86_TSC code

Now that the Kconfig space always enables CONFIG_X86_TSC (on x86),
remove !CONFIG_X86_TSC code from the x86 arch code.

We still keep the Kconfig option to catch any eventual code still
pending in maintainer or non-mainline trees, plus some drivers
have raw TSC timestamping hacks that use CONFIG_X86_TSC.

It's also still possible to disable TSC support runtime.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Ahmed S . Darwish <darwi@linutronix.de>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: H . Peter Anvin <hpa@zytor.com>
Cc: John Ogness <john.ogness@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250425084216.3913608-13-mingo@kernel.org
arch/x86/include/asm/timex.h
arch/x86/include/asm/trace_clock.h
arch/x86/include/asm/tsc.h
arch/x86/kernel/Makefile
arch/x86/kernel/i8253.c
arch/x86/kernel/tsc.c