aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/tsc.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/tsc.c')
-rw-r--r--arch/x86/kernel/tsc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c
index e66f5dcaeb63..21d6e04e3e82 100644
--- a/arch/x86/kernel/tsc.c
+++ b/arch/x86/kernel/tsc.c
@@ -248,7 +248,7 @@ static void set_cyc2ns_scale(unsigned long cpu_khz, int cpu)
248 248
249 data = cyc2ns_write_begin(cpu); 249 data = cyc2ns_write_begin(cpu);
250 250
251 tsc_now = native_read_tsc(); 251 tsc_now = rdtsc();
252 ns_now = cycles_2_ns(tsc_now); 252 ns_now = cycles_2_ns(tsc_now);
253 253
254 /* 254 /*
@@ -290,7 +290,7 @@ u64 native_sched_clock(void)
290 } 290 }
291 291
292 /* read the Time Stamp Counter: */ 292 /* read the Time Stamp Counter: */
293 tsc_now = native_read_tsc(); 293 tsc_now = rdtsc();
294 294
295 /* return the value in ns */ 295 /* return the value in ns */
296 return cycles_2_ns(tsc_now); 296 return cycles_2_ns(tsc_now);