On Fri, 2026-05-15 at 12:19 -0700, Sean Christopherson wrote: > Extract retrieval of TSC frequency information from CPUID into standalone > helpers so that TDX guest support can reuse the logic. Provide a version > that includes the multiplier math as TDX does NOT want to use > native_calibrate_tsc()'s fallback logic that derives the TSC frequency > based on CPUID.0x16, when the core crystal frequency isn't known. > > Opportunsitically drop native_calibrate_tsc()'s "== 0" and "!= 0" checks > in favor of the kernel's preferred style.
"Opportunistically" ? Now that looks wrong too... > No functional change intended. > > Signed-off-by: Sean Christopherson <[email protected]> Reviewed-by: David Woodhouse <[email protected]>
smime.p7s
Description: S/MIME cryptographic signature

