diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2017-01-31 07:38:17 +0100 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2017-01-31 07:47:32 +0100 |
commit | 30582c25a4b4e0a5e456a309fde79b845e9473b2 (patch) | |
tree | fa6fe105766dcb2e1e8f0fbabbb5cd9354385014 /drivers/devfreq/governor_passive.c | |
parent | PM / devfreq: Fix available_governor sysfs (diff) | |
download | linux-30582c25a4b4e0a5e456a309fde79b845e9473b2.tar.xz linux-30582c25a4b4e0a5e456a309fde79b845e9473b2.zip |
PM / devfreq: Fix wrong trans_stat of passive devfreq device
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")
Cc: stable@vger.kernel.org
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/devfreq/governor_passive.c')
-rw-r--r-- | drivers/devfreq/governor_passive.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/devfreq/governor_passive.c b/drivers/devfreq/governor_passive.c index 93795b32dc09..5be96b2249e7 100644 --- a/drivers/devfreq/governor_passive.c +++ b/drivers/devfreq/governor_passive.c @@ -112,6 +112,11 @@ static int update_devfreq_passive(struct devfreq *devfreq, unsigned long freq) if (ret < 0) goto out; + if (devfreq->profile->freq_table + && (devfreq_update_status(devfreq, freq))) + dev_err(&devfreq->dev, + "Couldn't update frequency transition information.\n"); + devfreq->previous_freq = freq; out: |