diff options
Diffstat (limited to 'arch/x86/kernel/hpet.c')
-rw-r--r-- | arch/x86/kernel/hpet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c index cc390fe69b71..f75c5908c7a6 100644 --- a/arch/x86/kernel/hpet.c +++ b/arch/x86/kernel/hpet.c | |||
@@ -735,7 +735,7 @@ static int hpet_clocksource_register(void) | |||
735 | 735 | ||
736 | /* Verify whether hpet counter works */ | 736 | /* Verify whether hpet counter works */ |
737 | t1 = hpet_readl(HPET_COUNTER); | 737 | t1 = hpet_readl(HPET_COUNTER); |
738 | start = native_read_tsc(); | 738 | start = rdtsc(); |
739 | 739 | ||
740 | /* | 740 | /* |
741 | * We don't know the TSC frequency yet, but waiting for | 741 | * We don't know the TSC frequency yet, but waiting for |
@@ -745,7 +745,7 @@ static int hpet_clocksource_register(void) | |||
745 | */ | 745 | */ |
746 | do { | 746 | do { |
747 | rep_nop(); | 747 | rep_nop(); |
748 | now = native_read_tsc(); | 748 | now = rdtsc(); |
749 | } while ((now - start) < 200000UL); | 749 | } while ((now - start) < 200000UL); |
750 | 750 | ||
751 | if (t1 == hpet_readl(HPET_COUNTER)) { | 751 | if (t1 == hpet_readl(HPET_COUNTER)) { |