aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal/thermal_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thermal/thermal_core.c')
-rw-r--r--drivers/thermal/thermal_core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index f1d511a9475b..30a02add9e2e 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -450,6 +450,9 @@ static void update_temperature(struct thermal_zone_device *tz)
450 tz->last_temperature = tz->temperature; 450 tz->last_temperature = tz->temperature;
451 tz->temperature = temp; 451 tz->temperature = temp;
452 mutex_unlock(&tz->lock); 452 mutex_unlock(&tz->lock);
453
454 dev_dbg(&tz->device, "last_temperature=%d, current_temperature=%d\n",
455 tz->last_temperature, tz->temperature);
453} 456}
454 457
455void thermal_zone_device_update(struct thermal_zone_device *tz) 458void thermal_zone_device_update(struct thermal_zone_device *tz)
@@ -1207,6 +1210,8 @@ void thermal_cdev_update(struct thermal_cooling_device *cdev)
1207 mutex_lock(&cdev->lock); 1210 mutex_lock(&cdev->lock);
1208 /* Make sure cdev enters the deepest cooling state */ 1211 /* Make sure cdev enters the deepest cooling state */
1209 list_for_each_entry(instance, &cdev->thermal_instances, cdev_node) { 1212 list_for_each_entry(instance, &cdev->thermal_instances, cdev_node) {
1213 dev_dbg(&cdev->device, "zone%d->target=%lu\n",
1214 instance->tz->id, instance->target);
1210 if (instance->target == THERMAL_NO_TARGET) 1215 if (instance->target == THERMAL_NO_TARGET)
1211 continue; 1216 continue;
1212 if (instance->target > target) 1217 if (instance->target > target)
@@ -1215,6 +1220,7 @@ void thermal_cdev_update(struct thermal_cooling_device *cdev)
1215 mutex_unlock(&cdev->lock); 1220 mutex_unlock(&cdev->lock);
1216 cdev->ops->set_cur_state(cdev, target); 1221 cdev->ops->set_cur_state(cdev, target);
1217 cdev->updated = true; 1222 cdev->updated = true;
1223 dev_dbg(&cdev->device, "set to state %lu\n", target);
1218} 1224}
1219EXPORT_SYMBOL(thermal_cdev_update); 1225EXPORT_SYMBOL(thermal_cdev_update);
1220 1226