summaryrefslogtreecommitdiff
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorBai Ping <ping.bai@nxp.com>2017-03-28 15:48:24 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:26:18 +0800
commitf6b2d26170adda398ee695e31533cbad14d57cc1 (patch)
tree9057adc162845b47d888dee8386866a86850fe14 /drivers/cpufreq
parente744622f6ba10da02d42ab96c7432e1af9ac9b0d (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 */