aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/exynos-cpufreq.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-01-30 21:26:04 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-02-09 06:56:13 -0500
commit6ca939b3a304f82065985e66041e26366be65564 (patch)
tree49e4e9808275c990cbfb2b797779171dfdeb06b0 /drivers/cpufreq/exynos-cpufreq.c
parent2a4bd9f0db24ba14c8b38777d77add2682233c79 (diff)
cpufreq: exynos: simplify .init() for setting policy->cpus
With the recent changes in cpufreq core, we just need to set mask of all possible cpus into policy->cpus. Rest would be done by core. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/exynos-cpufreq.c')
-rw-r--r--drivers/cpufreq/exynos-cpufreq.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c
index 7012ea8bf1e7..81eb84a24fa7 100644
--- a/drivers/cpufreq/exynos-cpufreq.c
+++ b/drivers/cpufreq/exynos-cpufreq.c
@@ -227,19 +227,7 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy)
227 /* set the transition latency value */ 227 /* set the transition latency value */
228 policy->cpuinfo.transition_latency = 100000; 228 policy->cpuinfo.transition_latency = 100000;
229 229
230 /* 230 cpumask_setall(policy->cpus);
231 * EXYNOS4 multi-core processors has 2 cores
232 * that the frequency cannot be set independently.
233 * Each cpu is bound to the same speed.
234 * So the affected cpu is all of the cpus.
235 */
236 if (num_online_cpus() == 1) {
237 cpumask_copy(policy->related_cpus, cpu_possible_mask);
238 cpumask_copy(policy->cpus, cpu_online_mask);
239 } else {
240 policy->shared_type = CPUFREQ_SHARED_TYPE_ANY;
241 cpumask_setall(policy->cpus);
242 }
243 231
244 return cpufreq_frequency_table_cpuinfo(policy, exynos_info->freq_table); 232 return cpufreq_frequency_table_cpuinfo(policy, exynos_info->freq_table);
245} 233}