aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/cpu-tegra.c
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2010-10-20 20:47:59 -0400
committerColin Cross <ccross@android.com>2011-02-21 03:10:45 -0500
commit89a5fb84dabdf6daeae7d5301a6b1ae4754425dd (patch)
tree42b5e7c1e7fb17782b7fd7f07585a797cf18fc90 /arch/arm/mach-tegra/cpu-tegra.c
parent4729fd7a7dfe7847b4870801ad12222adaeb016c (diff)
ARM: tegra: cpufreq: Take an extra reference to pllx
During cpu frequency changes, take an extra reference to pllx so that it doesn't turn off and on while the cpu is temporarily on pllp. If the cpu is moved to pllp permanently, pllx will be turned off. Acked-by: Olof Johansson <olof@lixom.net> Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'arch/arm/mach-tegra/cpu-tegra.c')
-rw-r--r--arch/arm/mach-tegra/cpu-tegra.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/cpu-tegra.c b/arch/arm/mach-tegra/cpu-tegra.c
index cda03f11550e..f02ba603ceb7 100644
--- a/arch/arm/mach-tegra/cpu-tegra.c
+++ b/arch/arm/mach-tegra/cpu-tegra.c
@@ -173,6 +173,8 @@ static int tegra_cpu_init(struct cpufreq_policy *policy)
173 if (IS_ERR(cpu_clk)) 173 if (IS_ERR(cpu_clk))
174 return PTR_ERR(cpu_clk); 174 return PTR_ERR(cpu_clk);
175 175
176 clk_enable(cpu_clk);
177
176 cpufreq_frequency_table_cpuinfo(policy, freq_table); 178 cpufreq_frequency_table_cpuinfo(policy, freq_table);
177 cpufreq_frequency_table_get_attr(freq_table, policy->cpu); 179 cpufreq_frequency_table_get_attr(freq_table, policy->cpu);
178 policy->cur = tegra_getspeed(policy->cpu); 180 policy->cur = tegra_getspeed(policy->cpu);