summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/trace_clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/trace_clock.c')
-rw-r--r--arch/x86/kernel/trace_clock.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/x86/kernel/trace_clock.c b/arch/x86/kernel/trace_clock.c
index 25b993729..80bb24d9b 100644
--- a/arch/x86/kernel/trace_clock.c
+++ b/arch/x86/kernel/trace_clock.c
@@ -12,10 +12,5 @@
*/
u64 notrace trace_clock_x86_tsc(void)
{
- u64 ret;
-
- rdtsc_barrier();
- rdtscll(ret);
-
- return ret;
+ return rdtsc_ordered();
}