summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/specialreg.h
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2010-11-19 15:07:36 +0000
committeravg <avg@FreeBSD.org>2010-11-19 15:07:36 +0000
commitf91dfaab21d850a29ba6230ceebe002ba41ba6b3 (patch)
tree840d941f782b412d822926c0bbf1dd0f86f1172b /sys/amd64/include/specialreg.h
parentd7d1ad6e2675a599ed942c52159adfb25829751e (diff)
downloadFreeBSD-src-f91dfaab21d850a29ba6230ceebe002ba41ba6b3.zip
FreeBSD-src-f91dfaab21d850a29ba6230ceebe002ba41ba6b3.tar.gz
specialreg.h: add definitions for MPERF/APERF pair of MSRs
These MSRs can be used to determine actual (average) performance as compared to a maximum defined performance. Availability of these MSRs is indicated by bit0 in CPUID.6.ECX on both Intel and AMD processors. MFC after: 5 days
Diffstat (limited to 'sys/amd64/include/specialreg.h')
-rw-r--r--sys/amd64/include/specialreg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/amd64/include/specialreg.h b/sys/amd64/include/specialreg.h
index 4571771..23d1149 100644
--- a/sys/amd64/include/specialreg.h
+++ b/sys/amd64/include/specialreg.h
@@ -240,6 +240,8 @@
#define MSR_BIOS_SIGN 0x08b
#define MSR_PERFCTR0 0x0c1
#define MSR_PERFCTR1 0x0c2
+#define MSR_MPERF 0x0e7
+#define MSR_APERF 0x0e8
#define MSR_IA32_EXT_CONFIG 0x0ee /* Undocumented. Core Solo/Duo only */
#define MSR_MTRRcap 0x0fe
#define MSR_BBL_CR_ADDR 0x116
OpenPOWER on IntegriCloud