Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263839
b: refs/heads/master
c: cd5bd3d
h: refs/heads/master
i:
  263837: 98083f3
  263835: f26b6d5
  263831: cb9693e
  263823: 248242a
  263807: 8031f3f
v: v3
  • Loading branch information
Jean Delvare authored and Guenter Roeck committed Sep 14, 2011
1 parent 7e6cebc commit eb03ccd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 40257b953fdd519c743138f3fbe3962d54991116
refs/heads/master: cd5bd3df1a6e7a68454734fb109c409101c20f42
7 changes: 6 additions & 1 deletion trunk/drivers/hwmon/coretemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,12 @@ static int create_core_data(struct platform_data *pdata,
err = rdmsr_safe_on_cpu(cpu, tdata->intrpt_reg, &eax, &edx);
if (!err) {
tdata->attr_size += MAX_THRESH_ATTRS;
tdata->ttarget = tdata->tjmax - ((eax >> 16) & 0x7f) * 1000;
tdata->tmin = tdata->tjmax -
((eax & THERM_MASK_THRESHOLD0) >>
THERM_SHIFT_THRESHOLD0) * 1000;
tdata->ttarget = tdata->tjmax -
((eax & THERM_MASK_THRESHOLD1) >>
THERM_SHIFT_THRESHOLD1) * 1000;
}

pdata->core_data[attr_no] = tdata;
Expand Down

0 comments on commit eb03ccd

Please sign in to comment.