Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177537
b: refs/heads/master
c: e4143b0
h: refs/heads/master
i:
  177535: 1901d69
v: v3
  • Loading branch information
Frans Pop authored and Len Brown committed Nov 5, 2009
1 parent 2e14d78 commit 1d76633
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 3d8e3ad879441ae14c5957b933028daf39d252b0
refs/heads/master: e4143b0324a6a468cb00c4341cd20d60cc441252
9 changes: 3 additions & 6 deletions trunk/drivers/thermal/thermal_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ passive_store(struct device *dev, struct device_attribute *attr,
cdev);
}
mutex_unlock(&thermal_list_lock);
if (!tz->passive_delay)
tz->passive_delay = 1000;
} else if (!state && tz->forced_passive) {
mutex_lock(&thermal_list_lock);
list_for_each_entry(cdev, &thermal_cdev_list, node) {
Expand All @@ -251,17 +253,12 @@ passive_store(struct device *dev, struct device_attribute *attr,
cdev);
}
mutex_unlock(&thermal_list_lock);
tz->passive_delay = 0;
}

tz->tc1 = 1;
tz->tc2 = 1;

if (!tz->passive_delay)
tz->passive_delay = 1000;

if (!tz->polling_delay)
tz->polling_delay = 10000;

tz->forced_passive = state;

thermal_zone_device_update(tz);
Expand Down

0 comments on commit 1d76633

Please sign in to comment.