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
- Lines: 9
- Date:
Thu Oct 7 10:17:09 1999
- Orig file:
v2.3.19/linux/include/asm-i386/msr.h
- Orig date:
Thu Apr 29 11:53:41 1999
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)