projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
879e096
)
MLK-14530-02 driver: cpufreq: Improve the the cpufreq for imx7ulp
author
Bai Ping
<ping.bai@nxp.com>
Tue, 28 Mar 2017 07:48:24 +0000
(15:48 +0800)
committer
Nitin Garg
<nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:58 +0000
(15:21 -0500)
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>
drivers/cpufreq/imx7ulp-cpufreq.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/imx7ulp-cpufreq.c
b/drivers/cpufreq/imx7ulp-cpufreq.c
index
33885cf
..
f2b95d7
100644
(file)
--- 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 */