summaryrefslogtreecommitdiff
path: root/drivers/thermal
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2014-07-25 17:40:38 +0200
committerChanho Park <chanho61.park@samsung.com>2014-11-18 12:00:38 +0900
commit0e7e1906c235501fc6705707198dbfb6c674afdf (patch)
tree7f766129c4aef97d1bf7636c6d336c8dba8fc7f3 /drivers/thermal
parent00b5a3b38cde756468548a7ffe0557d055931898 (diff)
downloadlinux-3.10-0e7e1906c235501fc6705707198dbfb6c674afdf.tar.gz
linux-3.10-0e7e1906c235501fc6705707198dbfb6c674afdf.tar.bz2
linux-3.10-0e7e1906c235501fc6705707198dbfb6c674afdf.zip
thermal: Use THERMAL_TREND_{RISING|FALLING} to indicate thermal trends
Values used previously - THERMAL_TREND_{RAISE|DROP}_FULL caused thermal governor to use the maximal cooling state just after crossing the first trip point. Such behavior is not acceptable since it causes the full speed of FAN which is noisy and not really necessary. With proposed values the fan speed limit is adjusted accordingly. Change-Id: I9b2fd96dd74040a3a0ddf8465b316b167d5c834e Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/samsung/exynos_thermal_common.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/thermal/samsung/exynos_thermal_common.c b/drivers/thermal/samsung/exynos_thermal_common.c
index c2301da08ac..510bd9fe7af 100644
--- a/drivers/thermal/samsung/exynos_thermal_common.c
+++ b/drivers/thermal/samsung/exynos_thermal_common.c
@@ -272,10 +272,12 @@ static int exynos_get_trend(struct thermal_zone_device *thermal,
if (ret < 0)
return ret;
- if (thermal->temperature >= trip_temp)
- *trend = THERMAL_TREND_RAISE_FULL;
+ if (thermal->temperature > trip_temp)
+ *trend = THERMAL_TREND_RAISING;
+ else if (thermal->temperature < trip_temp)
+ *trend = THERMAL_TREND_DROPPING;
else
- *trend = THERMAL_TREND_DROP_FULL;
+ *trend = THERMAL_TREND_STABLE;
return 0;
}