The current temperature range check of MSR_IA32_TEMPERATURE_TARGET seems too strict to me, some TjMax values documented in Documentation/hwmon/coretemp wouldn't pass. Relax the check so that all the documented values pass.
Signed-off-by: Jean Delvare <[email protected]> Cc: Carsten Emde <[email protected]> Cc: Fenghua Yu <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> --- This is 4c6e0f8101e62d8b2d01dc94b835a98b191a1454 in Linus' tree, adjusted to apply on older kernels. This should be applied to kernels 2.6.35 to 2.6.39. drivers/hwmon/coretemp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-2.6.39.orig/drivers/hwmon/coretemp.c 2011-06-06 16:20:59.000000000 +0200 +++ linux-2.6.39/drivers/hwmon/coretemp.c 2011-06-06 16:21:14.000000000 +0200 @@ -263,7 +263,7 @@ static int __devinit get_tjmax(struct cp * If the TjMax is not plausible, an assumption * will be used */ - if ((val > 80) && (val < 120)) { + if (val >= 70 && val <= 125) { dev_info(dev, "TjMax is %d C.\n", val); return val * 1000; } -- Jean Delvare _______________________________________________ stable mailing list [email protected] http://linux.kernel.org/mailman/listinfo/stable
