Skip to content

Commit 0bf18f1

Browse files
vireshkrafaeljw
authored andcommitted
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>
1 parent 7c4f453 commit 0bf18f1

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/cpufreq/ppc-corenet-cpufreq.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ static int corenet_cpufreq_cpu_init(struct cpufreq_policy *policy)
199199
}
200200

201201
data->table = table;
202-
per_cpu(cpu_data, cpu) = data;
203202

204203
/* update ->cpus if we have cluster, no harm if not */
205204
cpumask_copy(policy->cpus, per_cpu(cpu_mask, cpu));

0 commit comments

Comments
 (0)