patch-2.3.20 linux/include/asm-i386/msr.h

Next file: linux/include/asm-i386/processor.h
Previous file: linux/include/asm-i386/irq.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.19/linux/include/asm-i386/msr.h linux/include/asm-i386/msr.h
@@ -23,6 +23,8 @@
 #define rdtscll(val) \
      __asm__ __volatile__ ("rdtsc" : "=A" (val))
 
+#define write_tsc(val1,val2) wrmsr(0x10, val1, val2)
+
 #define rdpmc(counter,low,high) \
      __asm__ __volatile__("rdpmc" \
 			  : "=a" (low), "=d" (high) \

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