Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Nov 2010 15:07:36 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r215524 - in head/sys: amd64/include i386/include
Message-ID:  <201011191507.oAJF7ai1077993@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011191507.oAJF7ai1077993>