[PATCH 0/3] x86/tsc: Remove some magic constants
From: Petr Tesarik
Date: Fri Oct 09 2026 - 06:06:12 EST
The TSC code is full of various magic constants, making it difficult to
understand the calculations. This patch series tries to document their
actual meaning.
No functional change intended. In fact, the generated binary is
bit-for-bit identical after applying the series.
Petr Tesarik (3):
x86/tsc: Replace magic constants with xxx_PER_SEC
x86/tsc: Define and use HZ_PER_KHZ and KHZ_PER_MHZ
x86/tsc: Use TSC_CALIBRATE_MULT for the TSC multiplier
arch/x86/kernel/tsc.c | 54 ++++++++++++++++++++++---------------------
1 file changed, 28 insertions(+), 26 deletions(-)
--
2.55.0