From 232c4e06347235f100c12015b70f89bfb92bcaf5 Mon Sep 17 00:00:00 2001 From: avg Date: Fri, 11 Mar 2011 15:05:23 +0000 Subject: [PATCH] MFC r215748: specialreg.h: add definitions for some useful bits found in CPUID.6 EAX and ECX git-svn-id: svn://svn.freebsd.org/base/stable/8@219490 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/amd64/include/specialreg.h | 9 +++++++++ sys/i386/include/specialreg.h | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/sys/amd64/include/specialreg.h b/sys/amd64/include/specialreg.h index 23d11499b..49513d93f 100644 --- a/sys/amd64/include/specialreg.h +++ b/sys/amd64/include/specialreg.h @@ -135,6 +135,15 @@ #define CPUID2_POPCNT 0x00800000 #define CPUID2_AESNI 0x02000000 +/* + * Important bits in the Thermal and Power Management flags + * CPUID.6 EAX and ECX. + */ +#define CPUTPM1_SENSOR 0x00000001 +#define CPUTPM1_TURBO 0x00000002 +#define CPUTPM1_ARAT 0x00000004 +#define CPUTPM2_EFFREQ 0x00000001 + /* * Important bits in the AMD extended cpuid flags */ diff --git a/sys/i386/include/specialreg.h b/sys/i386/include/specialreg.h index dd0d4eeea..73e7a8454 100644 --- a/sys/i386/include/specialreg.h +++ b/sys/i386/include/specialreg.h @@ -132,6 +132,15 @@ #define CPUID2_POPCNT 0x00800000 #define CPUID2_AESNI 0x02000000 +/* + * Important bits in the Thermal and Power Management flags + * CPUID.6 EAX and ECX. + */ +#define CPUTPM1_SENSOR 0x00000001 +#define CPUTPM1_TURBO 0x00000002 +#define CPUTPM1_ARAT 0x00000004 +#define CPUTPM2_EFFREQ 0x00000001 + /* * Important bits in the AMD extended cpuid flags */ -- 2.45.0