x86/cpufeature: Replace cpu_has_tsc with boot_cpu_has() usage
[cascardo/linux.git] / arch / x86 / include / asm / tsc.h
index 174c421..7428697 100644 (file)
@@ -22,7 +22,7 @@ extern void disable_TSC(void);
 static inline cycles_t get_cycles(void)
 {
 #ifndef CONFIG_X86_TSC
-       if (!cpu_has_tsc)
+       if (!boot_cpu_has(X86_FEATURE_TSC))
                return 0;
 #endif