hwmon: (coretemp) Fix TjMax detection for older CPUs
authorGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 31 May 2011 13:54:21 +0000 (06:54 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 2 Jun 2011 03:10:31 +0000 (20:10 -0700)
commit4f5f71a7abe329bdad81ee6a8e4545054a7cc30a
treee7d907a27fa72bd1c706a4f8a0eb2ca246ad26e5
parent4c6e0f8101e62d8b2d01dc94b835a98b191a1454
hwmon: (coretemp) Fix TjMax detection for older CPUs

Commit a321cedb12904114e2ba5041a3673ca24deb09c9 excludes CPU models 0xe, 0xf,
0x16, and 0x1a from TjMax temperature adjustment, even though several of those
CPUs are known to have TiMax other than 100 degrees C, and even though the code
in adjust_tjmax() explicitly handles those CPUs and points to a Web document
listing several of the affected CPU IDs.

Reinstate original TjMax adjustment if TjMax can not be determined using the
IA32_TEMPERATURE_TARGET register.

https://bugzilla.kernel.org/show_bug.cgi?id=32582

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Huaxu Wan <huaxu.wan@linux.intel.com>
Cc: Carsten Emde <C.Emde@osadl.org>
Cc: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Yong Wang <yong.y.wang@linux.intel.com>
Cc: Rudolf Marek <r.marek@assembler.cz>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Tested-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Fenghua Yu <fenghua.yu@intel.com>
Cc: <stable@kernel.org> # .35.x .36.x .37.x .38.x .39.x
drivers/hwmon/coretemp.c