]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[CPUFREQ] Fix sparse warning in powernow-k8
authorDave Jones <davej@redhat.com>
Thu, 7 Feb 2008 02:55:26 +0000 (21:55 -0500)
committerDave Jones <davej@redhat.com>
Thu, 7 Feb 2008 03:57:59 +0000 (22:57 -0500)
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: Dave Jones <davej@redhat.com>
arch/x86/kernel/cpu/cpufreq/powernow-k8.c

index 67f04ec44af28010d3596e79d1997874603a657d..c99d59d8ef2ea46694ac8b3da1cb07de2714cf10 100644 (file)
@@ -1234,8 +1234,10 @@ static unsigned int powernowk8_get (unsigned int cpu)
        struct powernow_k8_data *data;
        cpumask_t oldmask = current->cpus_allowed;
        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)
                return -EINVAL;