Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Viresh Kumar and committed by
Rafael J. Wysocki
0bf18f19 7c4f4539

-1
-1
drivers/cpufreq/ppc-corenet-cpufreq.c
··· 199 199 } 200 200 201 201 data->table = table; 202 - per_cpu(cpu_data, cpu) = data; 203 202 204 203 /* update ->cpus if we have cluster, no harm if not */ 205 204 cpumask_copy(policy->cpus, per_cpu(cpu_mask, cpu));