diff options
author | Dave Jones <davej@redhat.com> | 2008-02-07 03:55:26 +0100 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2008-02-07 04:57:59 +0100 |
commit | 89c04849e71a7f8893474e5415cfd8bcb1b65d94 (patch) | |
tree | dfb8d21b201ce33e16e25b3bf9a1a2cc1fc8f9b4 /arch | |
parent | [CPUFREQ] Support Model D parts and newer in e_powersaver (diff) | |
download | linux-89c04849e71a7f8893474e5415cfd8bcb1b65d94.tar.xz linux-89c04849e71a7f8893474e5415cfd8bcb1b65d94.zip |
[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: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/cpu/cpufreq/powernow-k8.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c index 67f04ec44af2..c99d59d8ef2e 100644 --- a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c +++ b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c @@ -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; |