svn commit: r215524 - in head/sys: amd64/include i386/include
Andriy Gapon
avg at FreeBSD.org
Fri Nov 19 15:07:36 UTC 2010
Author: avg
Date: Fri Nov 19 15:07:36 2010
New Revision: 215524
URL: http://svn.freebsd.org/changeset/base/215524
Log:
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
Modified:
head/sys/amd64/include/specialreg.h
head/sys/i386/include/specialreg.h
Modified: head/sys/amd64/include/specialreg.h
==============================================================================
--- head/sys/amd64/include/specialreg.h Fri Nov 19 15:00:20 2010 (r215523)
+++ head/sys/amd64/include/specialreg.h Fri Nov 19 15:07:36 2010 (r215524)
@@ -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
Modified: head/sys/i386/include/specialreg.h
==============================================================================
--- head/sys/i386/include/specialreg.h Fri Nov 19 15:00:20 2010 (r215523)
+++ head/sys/i386/include/specialreg.h Fri Nov 19 15:07:36 2010 (r215524)
@@ -246,6 +246,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
More information about the svn-src-head
mailing list