diff options
author | delphij <delphij@FreeBSD.org> | 2010-07-29 19:08:22 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2010-07-29 19:08:22 +0000 |
commit | 7cbaa3e8e6d153c09e6a5a92a11f6b17529e1bca (patch) | |
tree | ad4719c73f7fa8cc8d6d65806e7966d6fed45576 /sys/amd64/include/specialreg.h | |
parent | 007376c918adfea0ab81ac43b33dc3f8297b4e6e (diff) | |
download | FreeBSD-src-7cbaa3e8e6d153c09e6a5a92a11f6b17529e1bca.zip FreeBSD-src-7cbaa3e8e6d153c09e6a5a92a11f6b17529e1bca.tar.gz |
Improve cputemp(4) driver wrt newer Intel processors, especially
Xeon 5500/5600 series:
- Utilize IA32_TEMPERATURE_TARGET, a.k.a. Tj(target) in place
of Tj(max) when a sane value is available, as documented
in Intel whitepaper "CPU Monitoring With DTS/PECI"; (By sane
value we mean 70C - 100C for now);
- Print the probe results when booting verbose;
- Replace cpu_mask with cpu_stepping;
- Use CPUID_* macros instead of rolling our own.
Approved by: rpaulo
MFC after: 1 month
Diffstat (limited to 'sys/amd64/include/specialreg.h')
-rw-r--r-- | sys/amd64/include/specialreg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/include/specialreg.h b/sys/amd64/include/specialreg.h index 91a1ebf..4af4594 100644 --- a/sys/amd64/include/specialreg.h +++ b/sys/amd64/include/specialreg.h @@ -258,6 +258,7 @@ #define MSR_THERM_INTERRUPT 0x19b #define MSR_THERM_STATUS 0x19c #define MSR_IA32_MISC_ENABLE 0x1a0 +#define MSR_IA32_TEMPERATURE_TARGET 0x1a2 #define MSR_DEBUGCTLMSR 0x1d9 #define MSR_LASTBRANCHFROMIP 0x1db #define MSR_LASTBRANCHTOIP 0x1dc |