[lunar:linux-kvm][PATCH] Revert "UBUNTU: SAUCE: smpboot: reuse timer calibration"
Dimitri John Ledkov
dimitri.ledkov at canonical.com
Wed Feb 8 11:14:12 UTC 2023
This reverts commit a62181adbd983660dd7ef65e813f055fee219c94.
This code change is unused. On v5.4+ kernels with recent qemu the
timer calibration is skipped as kvmclock provides a preset value
instead.
kernel: Calibrating delay loop (skipped) preset value.. 3379.20 BogoMIPS (lpj=6758400)
Please dorp this patch in a rebase.
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov at canonical.com>
---
arch/x86/kernel/tsc.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c
index 66430d05cc..169dc4d715 100644
--- a/arch/x86/kernel/tsc.c
+++ b/arch/x86/kernel/tsc.c
@@ -1571,9 +1571,6 @@ unsigned long calibrate_delay_is_known(void)
if (!constant_tsc || !mask)
return 0;
- if (cpu != 0)
- return cpu_data(0).loops_per_jiffy;
-
sibling = cpumask_any_but(mask, cpu);
if (sibling < nr_cpu_ids)
return cpu_data(sibling).loops_per_jiffy;
--
2.34.1
More information about the kernel-team
mailing list