Commit 89c04849 authored by Dave Jones's avatar Dave Jones

[CPUFREQ] Fix sparse warning in powernow-k8

arch/x86/kernel/cpu/cpufreq/powernow-k8.c:1238:9: warning: symbol '__ptr' shadows an earlier one
arch/x86/kernel/cpu/cpufreq/powernow-k8.c:1238:9: originally declared here
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 535ae38c
...@@ -1234,8 +1234,10 @@ static unsigned int powernowk8_get (unsigned int cpu) ...@@ -1234,8 +1234,10 @@ static unsigned int powernowk8_get (unsigned int cpu)
struct powernow_k8_data *data; struct powernow_k8_data *data;
cpumask_t oldmask = current->cpus_allowed; cpumask_t oldmask = current->cpus_allowed;
unsigned int khz = 0; unsigned int khz = 0;
unsigned int first;
data = per_cpu(powernow_data, first_cpu(per_cpu(cpu_core_map, cpu))); first = first_cpu(per_cpu(cpu_core_map, cpu));
data = per_cpu(powernow_data, first);
if (!data) if (!data)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment