aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apb_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/apb_timer.c')
-rw-r--r--arch/x86/kernel/apb_timer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/apb_timer.c b/arch/x86/kernel/apb_timer.c
index 25efa534c4e4..222a57076039 100644
--- a/arch/x86/kernel/apb_timer.c
+++ b/arch/x86/kernel/apb_timer.c
@@ -263,7 +263,7 @@ static int apbt_clocksource_register(void)
263 263
264 /* Verify whether apbt counter works */ 264 /* Verify whether apbt counter works */
265 t1 = dw_apb_clocksource_read(clocksource_apbt); 265 t1 = dw_apb_clocksource_read(clocksource_apbt);
266 start = native_read_tsc(); 266 start = rdtsc();
267 267
268 /* 268 /*
269 * We don't know the TSC frequency yet, but waiting for 269 * We don't know the TSC frequency yet, but waiting for
@@ -273,7 +273,7 @@ static int apbt_clocksource_register(void)
273 */ 273 */
274 do { 274 do {
275 rep_nop(); 275 rep_nop();
276 now = native_read_tsc(); 276 now = rdtsc();
277 } while ((now - start) < 200000UL); 277 } while ((now - start) < 200000UL);
278 278
279 /* APBT is the only always on clocksource, it has to work! */ 279 /* APBT is the only always on clocksource, it has to work! */
@@ -390,13 +390,13 @@ unsigned long apbt_quick_calibrate(void)
390 old = dw_apb_clocksource_read(clocksource_apbt); 390 old = dw_apb_clocksource_read(clocksource_apbt);
391 old += loop; 391 old += loop;
392 392
393 t1 = native_read_tsc(); 393 t1 = rdtsc();
394 394
395 do { 395 do {
396 new = dw_apb_clocksource_read(clocksource_apbt); 396 new = dw_apb_clocksource_read(clocksource_apbt);
397 } while (new < old); 397 } while (new < old);
398 398
399 t2 = native_read_tsc(); 399 t2 = rdtsc();
400 400
401 shift = 5; 401 shift = 5;
402 if (unlikely(loop >> shift == 0)) { 402 if (unlikely(loop >> shift == 0)) {