diff options
author | des <des@FreeBSD.org> | 2007-08-15 19:26:03 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2007-08-15 19:26:03 +0000 |
commit | fcec3dfa481cd41cfe77025d8ad114e7bc6ddd87 (patch) | |
tree | 363a48e98760864eda4f25ebb9027fb0f1e54983 /sys/i386 | |
parent | 316803b0b8a51bdb521cdc211dec0fb22db6c605 (diff) | |
download | FreeBSD-src-fcec3dfa481cd41cfe77025d8ad114e7bc6ddd87.zip FreeBSD-src-fcec3dfa481cd41cfe77025d8ad114e7bc6ddd87.tar.gz |
Add a driver for the on-die digital thermal sensor found on Intel Core
and newer CPUs (including Core 2 and Core / Core 2 based Xeons). The
driver attaches to each cpu device and creates a sysctl node in that
device's sysctl context (dev.cpu.N.temperature). When invoked, the
handler binds to the appropriate CPU to ensure a correct reading.
Submitted by: Rui Paulo <rpaulo@fnop.net>
Sponsored by: Google Summer of Code 2007
Tested by: des, marcus, Constantine A. Murenin, Ian FREISLICH
Approved by: re (kensmith)
MFC after: 3 weeks
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/conf/NOTES | 7 | ||||
-rw-r--r-- | sys/i386/include/specialreg.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES index bbbea1a..10c99f3 100644 --- a/sys/i386/conf/NOTES +++ b/sys/i386/conf/NOTES @@ -853,6 +853,13 @@ hint.pcf.0.irq="5" # device ichwd +# +# Temperature sensors: +# +# coretemp: on-die sensor on Intel Core and newer CPUs +# +device coretemp + #--------------------------------------------------------------------------- # ISDN4BSD # diff --git a/sys/i386/include/specialreg.h b/sys/i386/include/specialreg.h index a210bc4..24b686b 100644 --- a/sys/i386/include/specialreg.h +++ b/sys/i386/include/specialreg.h @@ -176,6 +176,7 @@ #define MSR_BIOS_SIGN 0x08b #define MSR_PERFCTR0 0x0c1 #define MSR_PERFCTR1 0x0c2 +#define MSR_IA32_EXT_CONFIG 0x0ee /* Undocumented. Core Solo/Duo only */ #define MSR_MTRRcap 0x0fe #define MSR_BBL_CR_ADDR 0x116 #define MSR_BBL_CR_DECC 0x118 |