Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157109
b: refs/heads/master
c: 0d28816
h: refs/heads/master
i:
  157107: b030fa5
v: v3
  • Loading branch information
Michael Brunner authored and Linus Torvalds committed Aug 27, 2009
1 parent 5e6565e commit 9f2bd49
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 4ab6c08336535f8c8e42cf45d7adeda882eff06e
refs/heads/master: 0d288162f2afc42b37aab656f4622c076babbca3
9 changes: 8 additions & 1 deletion trunk/drivers/thermal/thermal_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,12 @@ void thermal_zone_device_update(struct thermal_zone_device *tz)

mutex_lock(&tz->lock);

tz->ops->get_temp(tz, &temp);
if (tz->ops->get_temp(tz, &temp)) {
/* get_temp failed - retry it later */
printk(KERN_WARNING PREFIX "failed to read out thermal zone "
"%d\n", tz->id);
goto leave;
}

for (count = 0; count < tz->trips; count++) {
tz->ops->get_trip_type(tz, count, &trip_type);
Expand Down Expand Up @@ -1005,6 +1010,8 @@ void thermal_zone_device_update(struct thermal_zone_device *tz)
THERMAL_TRIPS_NONE);

tz->last_temperature = temp;

leave:
if (tz->passive)
thermal_zone_device_set_polling(tz, tz->passive_delay);
else if (tz->polling_delay)
Expand Down

0 comments on commit 9f2bd49

Please sign in to comment.