patch-2.2.8 linux/include/asm-i386/timex.h

Next file: linux/include/asm-m68k/atari_SCCserial.h
Previous file: linux/include/asm-i386/system.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.7/linux/include/asm-i386/timex.h linux/include/asm-i386/timex.h
@@ -7,6 +7,7 @@
 #define _ASMi386_TIMEX_H
 
 #include <linux/config.h>
+#include <asm/msr.h>
 
 #define CLOCK_TICK_RATE	1193180 /* Underlying HZ */
 #define CLOCK_TICK_FACTOR	20	/* Factor of both 1000000 and CLOCK_TICK_RATE */
@@ -39,7 +40,7 @@
 #else
 	unsigned long eax, edx;
 
-	__asm__ __volatile__("rdtsc":"=a" (eax), "=d" (edx));
+	rdtsc(eax,edx);
 	return eax;
 #endif
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)