[PATCH] x86/tsc: fix stale reference to tsc_early_delay_calibrate()

From: Kexin Sun

Date: Sat Mar 21 2026 - 07:02:23 EST


The function tsc_early_delay_calibrate() was renamed to
tsc_early_init() by commit cf7a63ef4e02 ("x86/tsc: Calibrate
tsc only once"). Update the stale reference in
pit_calibrate_tsc().

Assisted-by: unnamed:deepseek-v3.2 coccinelle
Signed-off-by: Kexin Sun <kexinsun@xxxxxxxxxxxxxxxx>
---
arch/x86/kernel/tsc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c
index d9aa694e43f3..b00be86dba97 100644
--- a/arch/x86/kernel/tsc.c
+++ b/arch/x86/kernel/tsc.c
@@ -444,9 +444,9 @@ static unsigned long pit_calibrate_tsc(u32 latch, unsigned long ms, int loopmin)

if (!has_legacy_pic()) {
/*
- * Relies on tsc_early_delay_calibrate() to have given us semi
- * usable udelay(), wait for the same 50ms we would have with
- * the PIT loop below.
+ * Relies on tsc_early_init() to have given us semi usable
+ * udelay(), wait for the same 50ms we would have with the
+ * PIT loop below.
*/
udelay(10 * USEC_PER_MSEC);
udelay(10 * USEC_PER_MSEC);
--
2.25.1