Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61811
b: refs/heads/master
c: 6b3e464
h: refs/heads/master
i:
  61809: 6b3be39
  61807: b3515b0
v: v3
  • Loading branch information
Jean Delvare authored and Mark M. Hoffman committed Jul 19, 2007
1 parent d4d214e commit 5a88ca3
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 475ef85512900dcb87435e13656c1f5e724de379
refs/heads/master: 6b3e46458049fe556c2346a347c4540e532db288
4 changes: 3 additions & 1 deletion trunk/drivers/hwmon/w83627ehf.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ static struct w83627ehf_data *w83627ehf_update_device(struct device *dev)

mutex_lock(&data->update_lock);

if (time_after(jiffies, data->last_updated + HZ)
if (time_after(jiffies, data->last_updated + HZ + HZ/2)
|| !data->valid) {
/* Fan clock dividers */
i = w83627ehf_read_value(data, W83627EHF_REG_FANDIV1);
Expand Down Expand Up @@ -727,6 +727,8 @@ store_fan_min(struct device *dev, struct device_attribute *attr,
div_from_reg(new_div));
data->fan_div[nr] = new_div;
w83627ehf_write_fan_div(data, nr);
/* Give the chip time to sample a new speed value */
data->last_updated = jiffies;
}
w83627ehf_write_value(data, W83627EHF_REG_FAN_MIN[nr],
data->fan_min[nr]);
Expand Down

0 comments on commit 5a88ca3

Please sign in to comment.