diff options
Diffstat (limited to 'arch/x86/kernel/cpu/cpufreq/powernow-k8.c')
-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) | |||
1234 | struct powernow_k8_data *data; | 1234 | struct powernow_k8_data *data; |
1235 | cpumask_t oldmask = current->cpus_allowed; | 1235 | cpumask_t oldmask = current->cpus_allowed; |
1236 | unsigned int khz = 0; | 1236 | unsigned int khz = 0; |
1237 | unsigned int first; | ||
1237 | 1238 | ||
1238 | data = per_cpu(powernow_data, first_cpu(per_cpu(cpu_core_map, cpu))); | 1239 | first = first_cpu(per_cpu(cpu_core_map, cpu)); |
1240 | data = per_cpu(powernow_data, first); | ||
1239 | 1241 | ||
1240 | if (!data) | 1242 | if (!data) |
1241 | return -EINVAL; | 1243 | return -EINVAL; |