diff options
-rw-r--r-- | arch/x86/kernel/rtc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/rtc.c b/arch/x86/kernel/rtc.c index c42cf1263882..276cb7073ab1 100644 --- a/arch/x86/kernel/rtc.c +++ b/arch/x86/kernel/rtc.c | |||
@@ -200,7 +200,10 @@ unsigned long long __vsyscall_fn native_read_tsc(void) | |||
200 | { | 200 | { |
201 | DECLARE_ARGS(val, low, high); | 201 | DECLARE_ARGS(val, low, high); |
202 | 202 | ||
203 | rdtsc_barrier(); | ||
203 | asm volatile("rdtsc" : EAX_EDX_RET(val, low, high)); | 204 | asm volatile("rdtsc" : EAX_EDX_RET(val, low, high)); |
205 | rdtsc_barrier(); | ||
206 | |||
204 | return EAX_EDX_VAL(val, low, high); | 207 | return EAX_EDX_VAL(val, low, high); |
205 | } | 208 | } |
206 | EXPORT_SYMBOL_GPL(native_read_tsc); | 209 | EXPORT_SYMBOL_GPL(native_read_tsc); |