diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2015-07-17 16:29:55 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:46:51 +0900 |
commit | 45a3204c08399d0abca043c09c37b16940654526 (patch) | |
tree | 9a4ffc74c57b7b4ef84c26e90b0f0cfe226ce94b /drivers/thermal | |
parent | fb1dbea016cd0e1d96a79d5567a7df34b44073c7 (diff) |
thermal: devfreq_cooling: Add missing update_devfreq()
This patch add the missing update_devfreq() to update the maximum frequency
of devfreq cooling device when g3d sensor detect the overheating temperature.
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/devfreq_cooling.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thermal/devfreq_cooling.c b/drivers/thermal/devfreq_cooling.c index 4868499b54b3..4c36684b019e 100644 --- a/drivers/thermal/devfreq_cooling.c +++ b/drivers/thermal/devfreq_cooling.c @@ -138,6 +138,7 @@ static int devfreq_set_cur_state(struct thermal_cooling_device *cdev, /* Set the limited frequency to maximum frequency of devfreq */ devfreq_dev->devfreq->max_freq = limited_freq; + update_devfreq(devfreq_dev->devfreq); return 0; } |