summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386/isa/clock.c')
-rw-r--r--sys/arch/i386/isa/clock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/isa/clock.c b/sys/arch/i386/isa/clock.c
index 7fdb55e9435..52bfc4c82c7 100644
--- a/sys/arch/i386/isa/clock.c
+++ b/sys/arch/i386/isa/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.28 2002/07/06 19:14:20 nordin Exp $ */
+/* $OpenBSD: clock.c,v 1.29 2003/05/27 23:52:01 fgsch Exp $ */
/* $NetBSD: clock.c,v 1.39 1996/05/12 23:11:54 mycroft Exp $ */
/*-
@@ -451,9 +451,9 @@ calibrate_cyclecounter()
{
unsigned long long count, last_count;
- __asm __volatile(".byte 0xf, 0x31" : "=A" (last_count));
+ __asm __volatile("rdtsc" : "=A" (last_count));
delay(1000000);
- __asm __volatile(".byte 0xf, 0x31" : "=A" (count));
+ __asm __volatile("rdtsc" : "=A" (count));
pentium_mhz = ((count - last_count) + 500000) / 1000000;
}
#endif