msm: cpufreq: Add support for CPU freq. scaling for 8625
8625 has two cpu cores & both core's frequency can not
be changed independently since both run at same frequency.
Hence we set the cpumask to all cpus, hence every frequency
transition will happen for both cpu core.
Change-Id: I27dbc048abc23865c3b41c6308efc3bc64174e36
Signed-off-by: Pankaj Kumar <pakuma@codeaurora.org>
diff --git a/arch/arm/mach-msm/cpufreq.c b/arch/arm/mach-msm/cpufreq.c
index 81d01c2..56778e2 100644
--- a/arch/arm/mach-msm/cpufreq.c
+++ b/arch/arm/mach-msm/cpufreq.c
@@ -173,6 +173,14 @@
struct cpufreq_work_struct *cpu_work = NULL;
#endif
+ /*
+ * In 8625 both cpu core's frequency can not
+ * be changed independently. Each cpu is bound to
+ * same frequency. Hence set the cpumask to all cpu.
+ */
+ if (cpu_is_msm8625())
+ cpumask_setall(policy->cpus);
+
table = cpufreq_frequency_get_table(policy->cpu);
if (table == NULL)
return -ENODEV;