diff options
author | Bai Ping <ping.bai@nxp.com> | 2016-04-07 18:05:08 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:24:37 +0800 |
commit | fe585641599f10fe9e1b1efd912e5fff20a9d682 (patch) | |
tree | 0754cdd64390f99e9517e3b21214c140e9db33c2 /drivers/cpufreq | |
parent | 94f885f34a47ad36ab19dedf34f5fd3dc246c882 (diff) |
MLK-12868-01 cpufreq: imx: get old_freq from policy->cur
Get the old_freq from the policy->cur.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/imx6q-cpufreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index ac8c345e5d50..c426928a0b39 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -63,7 +63,7 @@ static int imx6q_set_target(struct cpufreq_policy *policy, unsigned int index) new_freq = freq_table[index].frequency; freq_hz = new_freq * 1000; - old_freq = clk_get_rate(arm_clk) / 1000; + old_freq = policy->cur; opp = dev_pm_opp_find_freq_ceil(cpu_dev, &freq_hz); if (IS_ERR(opp)) { |