summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBai Ping <ping.bai@nxp.com>2016-04-07 18:05:08 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit3001631df981619267c11aa6a73689c86094722b (patch)
tree3be706c02a1d179dca19235965d5afe2677902e7
parent83f8aefbb048c7b2d60fe58f8d22f475d7f5c47c (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>
-rw-r--r--drivers/cpufreq/imx6q-cpufreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c
index de33a1e5a054..fd2297e83b68 100644
--- a/drivers/cpufreq/imx6q-cpufreq.c
+++ b/drivers/cpufreq/imx6q-cpufreq.c
@@ -64,7 +64,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;
rcu_read_lock();
opp = dev_pm_opp_find_freq_ceil(cpu_dev, &freq_hz);