Skip to content

Commit f7b2ed4

Browse files
committed
Merge branch 'cpufreq-fixes' of git://git.linaro.org/people/vireshk/linux into pm-cpufreq
Pull cpufreq fixes for v3.12 from Viresh Kumar. * 'cpufreq-fixes' of git://git.linaro.org/people/vireshk/linux: cpufreq: imx6q: Fix clock enable balance cpufreq: tegra: fix the wrong clock name
2 parents 09198f8 + fae19b8 commit f7b2ed4

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

drivers/cpufreq/imx6q-cpufreq.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -117,28 +117,11 @@ static int imx6q_set_target(struct cpufreq_policy *policy,
117117
* - Reprogram pll1_sys_clk and reparent pll1_sw_clk back to it
118118
* - Disable pll2_pfd2_396m_clk
119119
*/
120-
clk_prepare_enable(pll2_pfd2_396m_clk);
121120
clk_set_parent(step_clk, pll2_pfd2_396m_clk);
122121
clk_set_parent(pll1_sw_clk, step_clk);
123122
if (freq_hz > clk_get_rate(pll2_pfd2_396m_clk)) {
124123
clk_set_rate(pll1_sys_clk, freqs.new * 1000);
125-
/*
126-
* If we are leaving 396 MHz set-point, we need to enable
127-
* pll1_sys_clk and disable pll2_pfd2_396m_clk to keep
128-
* their use count correct.
129-
*/
130-
if (freqs.old * 1000 <= clk_get_rate(pll2_pfd2_396m_clk)) {
131-
clk_prepare_enable(pll1_sys_clk);
132-
clk_disable_unprepare(pll2_pfd2_396m_clk);
133-
}
134124
clk_set_parent(pll1_sw_clk, pll1_sys_clk);
135-
clk_disable_unprepare(pll2_pfd2_396m_clk);
136-
} else {
137-
/*
138-
* Disable pll1_sys_clk if pll2_pfd2_396m_clk is sufficient
139-
* to provide the frequency.
140-
*/
141-
clk_disable_unprepare(pll1_sys_clk);
142125
}
143126

144127
/* Ensure the arm clock divider is what we expect */

drivers/cpufreq/tegra-cpufreq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,15 +255,15 @@ static struct cpufreq_driver tegra_cpufreq_driver = {
255255

256256
static int __init tegra_cpufreq_init(void)
257257
{
258-
cpu_clk = clk_get_sys(NULL, "cpu");
258+
cpu_clk = clk_get_sys(NULL, "cclk");
259259
if (IS_ERR(cpu_clk))
260260
return PTR_ERR(cpu_clk);
261261

262262
pll_x_clk = clk_get_sys(NULL, "pll_x");
263263
if (IS_ERR(pll_x_clk))
264264
return PTR_ERR(pll_x_clk);
265265

266-
pll_p_clk = clk_get_sys(NULL, "pll_p_cclk");
266+
pll_p_clk = clk_get_sys(NULL, "pll_p");
267267
if (IS_ERR(pll_p_clk))
268268
return PTR_ERR(pll_p_clk);
269269

0 commit comments

Comments
 (0)