aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-09-29 23:49:57 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-09-30 15:09:40 -0400
commit0bf18f19be4d26545d7aa3114091cffe556572be (patch)
treee95b0afadeec37ab360ccd267a780d50578785a5 /drivers/cpufreq
parent7c4f45397057506415d1cbf3e30b90674f2e0ec0 (diff)
cpufreq: ppc-corenet: remove duplicate update of cpu_data
'cpu_data' is updated for policy->cpu first and then for all CPUs in policy->cpus. policy->cpus is guaranteed to contain policy->cpu as well and so the first write to 'cpu_data' for policy->cpu is redundant. Remove it. Acked-by: Tang Yuantian <Yuantian.Tang@freescale.com> 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')
-rw-r--r--drivers/cpufreq/ppc-corenet-cpufreq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/cpufreq/ppc-corenet-cpufreq.c b/drivers/cpufreq/ppc-corenet-cpufreq.c
index 3607070797af..bee5df7794d3 100644
--- a/drivers/cpufreq/ppc-corenet-cpufreq.c
+++ b/drivers/cpufreq/ppc-corenet-cpufreq.c
@@ -199,7 +199,6 @@ static int corenet_cpufreq_cpu_init(struct cpufreq_policy *policy)
199 } 199 }
200 200
201 data->table = table; 201 data->table = table;
202 per_cpu(cpu_data, cpu) = data;
203 202
204 /* update ->cpus if we have cluster, no harm if not */ 203 /* update ->cpus if we have cluster, no harm if not */
205 cpumask_copy(policy->cpus, per_cpu(cpu_mask, cpu)); 204 cpumask_copy(policy->cpus, per_cpu(cpu_mask, cpu));