summaryrefslogtreecommitdiffstats
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 67efb8c96fc4..80bb24d9b880 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();
- ret = rdtsc();
-
- return ret;
+ return rdtsc_ordered();
}