From 4168deefd6407b7e06fa90a764725c0555a8057f Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Sun, 18 Jan 2004 21:18:00 +0000 Subject: [PATCH] Add new CPU_ENABLE_TCC option, from NOTES: CPU_ENABLE_TCC enables Thermal Control Circuitry (TCC) found in some Pentium(tm) 4 and (possibly) later CPUs. When enabled and detected, TCC allows to restrict power consumption by using machdep.cpuperf* sysctls. This operates independently of SpeedStep and is useful on systems where other mechanisms such as apm(4) or acpi(4) don't work. Given the fact that many, even modern, notebooks don't work properly with Intel ACPI, this is indeed very useful option for notebook owners. Obtained from: OpenBSD MFC after: 2 weeks --- sys/i386/include/specialreg.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/i386/include/specialreg.h b/sys/i386/include/specialreg.h index 71c43b3550d9..c4442da1852d 100644 --- a/sys/i386/include/specialreg.h +++ b/sys/i386/include/specialreg.h @@ -154,6 +154,9 @@ #define MSR_MCG_CTL 0x17b #define MSR_EVNTSEL0 0x186 #define MSR_EVNTSEL1 0x187 +#define MSR_THERM_CONTROL 0x19a +#define MSR_THERM_INTERRUPT 0x19b +#define MSR_THERM_STATUS 0x19c #define MSR_DEBUGCTLMSR 0x1d9 #define MSR_LASTBRANCHFROMIP 0x1db #define MSR_LASTBRANCHTOIP 0x1dc