diff options
Diffstat (limited to 'drivers/thermal/step_wise.c')
-rw-r--r-- | drivers/thermal/step_wise.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/thermal/step_wise.c b/drivers/thermal/step_wise.c index d89e781b0a18..f251521baaa2 100644 --- a/drivers/thermal/step_wise.c +++ b/drivers/thermal/step_wise.c | |||
@@ -60,6 +60,7 @@ static unsigned long get_target_state(struct thermal_instance *instance, | |||
60 | */ | 60 | */ |
61 | cdev->ops->get_cur_state(cdev, &cur_state); | 61 | cdev->ops->get_cur_state(cdev, &cur_state); |
62 | next_target = instance->target; | 62 | next_target = instance->target; |
63 | dev_dbg(&cdev->device, "cur_state=%ld\n", cur_state); | ||
63 | 64 | ||
64 | switch (trend) { | 65 | switch (trend) { |
65 | case THERMAL_TREND_RAISING: | 66 | case THERMAL_TREND_RAISING: |
@@ -131,6 +132,9 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) | |||
131 | if (tz->temperature >= trip_temp) | 132 | if (tz->temperature >= trip_temp) |
132 | throttle = true; | 133 | throttle = true; |
133 | 134 | ||
135 | dev_dbg(&tz->device, "Trip%d[type=%d,temp=%ld]:trend=%d,throttle=%d\n", | ||
136 | trip, trip_type, trip_temp, trend, throttle); | ||
137 | |||
134 | mutex_lock(&tz->lock); | 138 | mutex_lock(&tz->lock); |
135 | 139 | ||
136 | list_for_each_entry(instance, &tz->thermal_instances, tz_node) { | 140 | list_for_each_entry(instance, &tz->thermal_instances, tz_node) { |
@@ -139,6 +143,8 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) | |||
139 | 143 | ||
140 | old_target = instance->target; | 144 | old_target = instance->target; |
141 | instance->target = get_target_state(instance, trend, throttle); | 145 | instance->target = get_target_state(instance, trend, throttle); |
146 | dev_dbg(&instance->cdev->device, "old_target=%d, target=%d\n", | ||
147 | old_target, (int)instance->target); | ||
142 | 148 | ||
143 | if (old_target == instance->target) | 149 | if (old_target == instance->target) |
144 | continue; | 150 | continue; |