]> Git Repo - linux.git/blobdiff - drivers/clocksource/hyperv_timer.c
arm64: avoid prototype warnings for syscalls
[linux.git] / drivers / clocksource / hyperv_timer.c
index f32948c8a96fa3cfa1658a42ff38829a7e1109c3..bcd9042a0c9f460a4eeece614d0b032176ccc620 100644 (file)
@@ -517,9 +517,6 @@ static bool __init hv_init_tsc_clocksource(void)
 {
        union hv_reference_tsc_msr tsc_msr;
 
-       if (!(ms_hyperv.features & HV_MSR_REFERENCE_TSC_AVAILABLE))
-               return false;
-
        /*
         * If Hyper-V offers TSC_INVARIANT, then the virtualized TSC correctly
         * handles frequency and offset changes due to live migration,
@@ -536,6 +533,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;
 
        /*
This page took 0.031123 seconds and 4 git commands to generate.