x86/asm/tsc: Rename native_read_tsc() to rdtsc()
[firefly-linux-kernel-4.4.55.git] / arch / x86 / kernel / hpet.c
index 10757d0a3fcf438e43ffbfc634e7daa8dc110a2e..f75c5908c7a6a9d1391752c975995d6d6d67bb22 100644 (file)
@@ -735,7 +735,7 @@ static int hpet_clocksource_register(void)
 
        /* Verify whether hpet counter works */
        t1 = hpet_readl(HPET_COUNTER);
-       rdtscll(start);
+       start = rdtsc();
 
        /*
         * We don't know the TSC frequency yet, but waiting for
@@ -745,7 +745,7 @@ static int hpet_clocksource_register(void)
         */
        do {
                rep_nop();
-               rdtscll(now);
+               now = rdtsc();
        } while ((now - start) < 200000UL);
 
        if (t1 == hpet_readl(HPET_COUNTER)) {