x86/paravirt: Switch time pvops functions to use static_call()
[sfrench/cifs-2.6.git] / arch / x86 / kernel / tsc.c
index f70dffc2771f53d5f2b924126150d244463c09ee..9f592923f9567802da59302d609f8325c9d15733 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/percpu.h>
 #include <linux/timex.h>
 #include <linux/static_key.h>
+#include <linux/static_call.h>
 
 #include <asm/hpet.h>
 #include <asm/timer.h>
@@ -254,7 +255,7 @@ unsigned long long sched_clock(void)
 
 bool using_native_sched_clock(void)
 {
-       return pv_ops.time.sched_clock == native_sched_clock;
+       return static_call_query(pv_sched_clock) == native_sched_clock;
 }
 #else
 unsigned long long