summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxc/cpufreq.c
diff options
context:
space:
mode:
authorRanjani Vaidyanathan <ra5478@freescale.com>2011-12-06 12:27:18 -0600
committerJason Liu <r64343@freescale.com>2012-01-09 21:09:42 +0800
commit87b4fd0b9314f965edeacaa36802029c0633e69c (patch)
tree19d14cb44ae7082143fc4d78732ea843dfa9e02f /arch/arm/plat-mxc/cpufreq.c
parent145493838e4f5518798db048ac3b95311f433460 (diff)
ENGR00163052: CPUFREQ does not report correct frequency
When DVFS_CORE is enabled, the following command reports incorrect frequency: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq Fix this by ensuring the CPUFREQ does not change the frequency when DVFS_CORE is active. And DVFS-CORE informs CPUFREQ of the change done to CPU frequency. Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
Diffstat (limited to 'arch/arm/plat-mxc/cpufreq.c')
-rwxr-xr-xarch/arm/plat-mxc/cpufreq.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm/plat-mxc/cpufreq.c b/arch/arm/plat-mxc/cpufreq.c
index bb2a6c8c9900..5efe83334703 100755
--- a/arch/arm/plat-mxc/cpufreq.c
+++ b/arch/arm/plat-mxc/cpufreq.c
@@ -32,8 +32,6 @@
#define CLK32_FREQ 32768
#define NANOSECOND (1000 * 1000 * 1000)
-int cpufreq_trig_needed;
-
static int cpu_freq_khz_min;
static int cpu_freq_khz_max;
@@ -122,12 +120,10 @@ static int mxc_set_target(struct cpufreq_policy *policy,
if (policy->cpu > num_cpus)
return 0;
-#ifdef CONFIG_ARCH_MX5
if (dvfs_core_is_active) {
printk(KERN_DEBUG"DVFS-CORE is active, cannot change frequency using CPUFREQ\n");
return ret;
}
-#endif
cpufreq_frequency_table_target(policy, imx_freq_table,
target_freq, relation, &index);