@@ -499,9 +499,6 @@ static bool __init hv_init_tsc_clocksource(void)
union hv_reference_tsc_msr tsc_msr;
phys_addr_t phys_addr;
- if (!(ms_hyperv.features & HV_MSR_REFERENCE_TSC_AVAILABLE))
- return false;
-
if (hv_root_partition)
return false;
@@ -521,6 +518,9 @@ static bool __init hv_init_tsc_clocksource(void)
hyperv_cs_msr.rating = 250;
}
+ if (!(ms_hyperv.features & HV_MSR_REFERENCE_TSC_AVAILABLE))
+ return false;
+
hv_read_reference_counter = read_hv_clock_tsc;
phys_addr = virt_to_phys(hv_get_tsc_page());