summaryrefslogtreecommitdiff
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorBai Ping <ping.bai@nxp.com>2017-03-28 15:48:24 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit4e04e6abacdb0ed80689856fe03b7b331c10d95c (patch)
treeee8350f7037e097fa31f2ce7eed0f59c9a31a8d0 /drivers/cpufreq
parentdb46519db9a2c66969c5674bbddafe5b473392e4 (diff)
MLK-14530-02 driver: cpufreq: Improve the the cpufreq for imx7ulp
The pm Qos add/remove only need to be called when A7 change mode between HSRUN and RUN mode. Signed-off-by: Bai Ping <ping.bai@nxp.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/imx7ulp-cpufreq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/cpufreq/imx7ulp-cpufreq.c b/drivers/cpufreq/imx7ulp-cpufreq.c
index 33885cfb8847..f2b95d705a1b 100644
--- a/drivers/cpufreq/imx7ulp-cpufreq.c
+++ b/drivers/cpufreq/imx7ulp-cpufreq.c
@@ -108,7 +108,8 @@ static int imx7ulp_set_target(struct cpufreq_policy *policy, unsigned int index)
clk_set_rate(spll_pfd0, new_freq * 1000);
clk_set_parent(sys_sel, spll_sel);
clk_set_parent(arm_clk, core_div);
- pm_qos_remove_request(&pm_qos_hsrun);
+ if (old_freq > MAX_RUN_FREQ)
+ pm_qos_remove_request(&pm_qos_hsrun);
}
/* scaling down? scaling voltage after frequency */