Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315965
b: refs/heads/master
c: 62867d4
h: refs/heads/master
i:
  315963: 0e88d12
v: v3
  • Loading branch information
Guenter Roeck committed Jul 22, 2012
1 parent 86ed0c0 commit f956ef4
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 58c3667d83376c2f3016465f59f22c19c8f846e1
refs/heads/master: 62867d491a27affee36194d4856564f2f4e12b3c
3 changes: 2 additions & 1 deletion trunk/drivers/hwmon/fam15h_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ static ssize_t show_power(struct device *dev,
REG_TDP_LIMIT3, &val);

tdp_limit = val >> 16;
curr_pwr_watts = (tdp_limit + data->base_tdp) << running_avg_range;
curr_pwr_watts = ((u64)(tdp_limit +
data->base_tdp)) << running_avg_range;
curr_pwr_watts -= running_avg_capture;
curr_pwr_watts *= data->tdp_to_watts;

Expand Down

0 comments on commit f956ef4

Please sign in to comment.