mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-22 20:59:20 +07:00
[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>
This commit is contained in:
parent
535ae38c9f
commit
89c04849e7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user