diff options
author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2015-08-18 13:47:41 +0900 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2015-09-11 14:23:30 +0900 |
commit | 14de3903181ca41dde73d57ad4f7a79a314ee6bf (patch) | |
tree | 4ccbe67862aad41d751107b6b25803c2f04f4289 | |
parent | d54cdf3fc91aae3780433471d15d73413a845bc0 (diff) | |
download | linux-14de3903181ca41dde73d57ad4f7a79a314ee6bf.tar.gz linux-14de3903181ca41dde73d57ad4f7a79a314ee6bf.tar.bz2 linux-14de3903181ca41dde73d57ad4f7a79a314ee6bf.zip |
PM / devfreq: tegra: Update governor to use devfreq_update_stats()
Direct invocation of get_dev_status() is no more recommended.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
-rw-r--r-- | drivers/devfreq/tegra-devfreq.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/devfreq/tegra-devfreq.c b/drivers/devfreq/tegra-devfreq.c index 13a1a6e8108c..848b93ee930f 100644 --- a/drivers/devfreq/tegra-devfreq.c +++ b/drivers/devfreq/tegra-devfreq.c @@ -541,18 +541,20 @@ static struct devfreq_dev_profile tegra_devfreq_profile = { static int tegra_governor_get_target(struct devfreq *devfreq, unsigned long *freq) { - struct devfreq_dev_status stat; + struct devfreq_dev_status *stat; struct tegra_devfreq *tegra; struct tegra_devfreq_device *dev; unsigned long target_freq = 0; unsigned int i; int err; - err = devfreq->profile->get_dev_status(devfreq->dev.parent, &stat); + err = devfreq_update_stats(devfreq); if (err) return err; - tegra = stat.private_data; + stat = &devfreq->last_status; + + tegra = stat->private_data; for (i = 0; i < ARRAY_SIZE(tegra->devices); i++) { dev = &tegra->devices[i]; |