summaryrefslogtreecommitdiff
path: root/drivers/cpufreq/imx7ulp-cpufreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cpufreq/imx7ulp-cpufreq.c')
-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 */