Mark the TSC frequency as known when using ACRN's PV CPUID information.
Per commit 81a71f51b89e ("x86/acrn: Set up timekeeping") and common sense,
the TSC freq is explicitly provided by the hypervisor.Signed-off-by: Sean Christopherson <[email protected]> --- arch/x86/kernel/cpu/acrn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/cpu/acrn.c b/arch/x86/kernel/cpu/acrn.c index ad8f2da8003b..0303fe6a2efa 100644 --- a/arch/x86/kernel/cpu/acrn.c +++ b/arch/x86/kernel/cpu/acrn.c @@ -33,6 +33,8 @@ static void __init acrn_init_platform(void) { /* Install system interrupt handler for ACRN hypervisor callback */ sysvec_install(HYPERVISOR_CALLBACK_VECTOR, sysvec_acrn_hv_callback); + + setup_force_cpu_cap(X86_FEATURE_TSC_KNOWN_FREQ); } static bool acrn_x2apic_available(void) -- 2.54.0.823.g6e5bcc1fc9-goog

