x86: move native_read_tsc() offline
[sfrench/cifs-2.6.git] / include / asm-x86 / msr.h
index bca8c39501320fc29ee2870d73dd0f2a549cc87a..decfec4ab17c8c9d8c94ffe05bd7283f63e19139 100644 (file)
@@ -91,13 +91,7 @@ static inline int native_write_msr_safe(unsigned int msr,
        return err;
 }
 
-static inline unsigned long long native_read_tsc(void)
-{
-       DECLARE_ARGS(val, low, high);
-
-       asm volatile("rdtsc" : EAX_EDX_RET(val, low, high));
-       return EAX_EDX_VAL(val, low, high);
-}
+extern unsigned long long native_read_tsc(void);
 
 static inline unsigned long long native_read_pmc(int counter)
 {