diff options
author | Jean Delvare <khali@linux-fr.org> | 2011-05-31 15:50:51 -0400 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-06-01 11:11:28 -0700 |
commit | 4c6e0f8101e62d8b2d01dc94b835a98b191a1454 (patch) | |
tree | 99631d4139ad63d6eb326754e70e99321463c3ca /drivers/hwmon | |
parent | 614198bbf8d74617381aea82521b261c7f9baaf6 (diff) | |
download | kernel_samsung_crespo-4c6e0f8101e62d8b2d01dc94b835a98b191a1454.zip kernel_samsung_crespo-4c6e0f8101e62d8b2d01dc94b835a98b191a1454.tar.gz kernel_samsung_crespo-4c6e0f8101e62d8b2d01dc94b835a98b191a1454.tar.bz2 |
hwmon: (coretemp) Relax target temperature range check
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 <khali@linux-fr.org>
Cc: Carsten Emde <C.Emde@osadl.org>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/coretemp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c index de3d246..0eeff46 100644 --- a/drivers/hwmon/coretemp.c +++ b/drivers/hwmon/coretemp.c @@ -296,7 +296,7 @@ static int get_tjmax(struct cpuinfo_x86 *c, u32 id, struct device *dev) * 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; } |