Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253108
b: refs/heads/master
c: bb9973e
h: refs/heads/master
v: v3
  • Loading branch information
Guenter Roeck committed Jun 2, 2011
1 parent 767e785 commit bea762c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4f5f71a7abe329bdad81ee6a8e4545054a7cc30a
refs/heads/master: bb9973e4e73f43bd86698483d0c3f7a362ff94ce
4 changes: 2 additions & 2 deletions trunk/drivers/hwmon/coretemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 >= 70 && val <= 125) {
if (val) {
dev_info(dev, "TjMax is %d C.\n", val);
return val * 1000;
}
Expand Down Expand Up @@ -326,7 +326,7 @@ static int get_pkg_tjmax(unsigned int cpu, struct device *dev)
err = rdmsr_safe_on_cpu(cpu, MSR_IA32_TEMPERATURE_TARGET, &eax, &edx);
if (!err) {
val = (eax >> 16) & 0xff;
if (val > 80 && val < 120)
if (val)
return val * 1000;
}
dev_warn(dev, "Unable to read Pkg-TjMax from CPU:%u\n", cpu);
Expand Down

0 comments on commit bea762c

Please sign in to comment.