summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/step_wise.c
diff options
context:
space:
mode:
authorZhang Rui2014-10-11 03:28:13 +0200
committerZhang Rui2014-10-11 03:28:13 +0200
commit9ceaa81efd1dd5ec83cf6be5a9445809583a03b6 (patch)
tree776b6c713918e2f9c3475570383e37b5a951b6a3 /drivers/thermal/step_wise.c
parentMerge branches 'eduardo-soc' and 'bang-bang-governor' of .git into next (diff)
parentthermal: step_wise: fix: Prevent from binary overflow when trend is dropping (diff)
downloadkernel-qcow2-linux-9ceaa81efd1dd5ec83cf6be5a9445809583a03b6.tar.gz
kernel-qcow2-linux-9ceaa81efd1dd5ec83cf6be5a9445809583a03b6.tar.xz
kernel-qcow2-linux-9ceaa81efd1dd5ec83cf6be5a9445809583a03b6.zip
Merge branch 'thermal-core-fix' of .git into next
Diffstat (limited to 'drivers/thermal/step_wise.c')
-rw-r--r--drivers/thermal/step_wise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/step_wise.c b/drivers/thermal/step_wise.c
index 3b54c2c226d8..fdd1f523a1ed 100644
--- a/drivers/thermal/step_wise.c
+++ b/drivers/thermal/step_wise.c
@@ -77,7 +77,7 @@ static unsigned long get_target_state(struct thermal_instance *instance,
next_target = instance->upper;
break;
case THERMAL_TREND_DROPPING:
- if (cur_state == instance->lower) {
+ if (cur_state <= instance->lower) {
if (!throttle)
next_target = THERMAL_NO_TARGET;
} else {