diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2017-01-31 01:38:17 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-12 00:41:44 -0500 |
commit | fe8f92c7beba2f1c6b1235e52e199eafbe4aa39a (patch) | |
tree | d1a904469752c7a6b1dde2ba42cee04fbc4a9261 /drivers/devfreq/devfreq.c | |
parent | 2294b771a4b425d9365aabeaff8d33ccd0c0fffe (diff) |
PM / devfreq: Fix wrong trans_stat of passive devfreq device
commit 30582c25a4b4e0a5e456a309fde79b845e9473b2 upstream.
Until now, the trans_stat information of passive devfreq is not updated.
This patch updates the trans_stat information after setting the target
frequency of passive devfreq device.
Fixes: 996133119f57 ("PM / devfreq: Add new passive governor")
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/devfreq/devfreq.c')
-rw-r--r-- | drivers/devfreq/devfreq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 2eacfb4b905f..7309c0824887 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c | |||
@@ -130,7 +130,7 @@ static void devfreq_set_freq_table(struct devfreq *devfreq) | |||
130 | * @devfreq: the devfreq instance | 130 | * @devfreq: the devfreq instance |
131 | * @freq: the update target frequency | 131 | * @freq: the update target frequency |
132 | */ | 132 | */ |
133 | static int devfreq_update_status(struct devfreq *devfreq, unsigned long freq) | 133 | int devfreq_update_status(struct devfreq *devfreq, unsigned long freq) |
134 | { | 134 | { |
135 | int lev, prev_lev, ret = 0; | 135 | int lev, prev_lev, ret = 0; |
136 | unsigned long cur_time; | 136 | unsigned long cur_time; |
@@ -166,6 +166,7 @@ out: | |||
166 | devfreq->last_stat_updated = cur_time; | 166 | devfreq->last_stat_updated = cur_time; |
167 | return ret; | 167 | return ret; |
168 | } | 168 | } |
169 | EXPORT_SYMBOL(devfreq_update_status); | ||
169 | 170 | ||
170 | /** | 171 | /** |
171 | * find_devfreq_governor() - find devfreq governor from name | 172 | * find_devfreq_governor() - find devfreq governor from name |