|
@@ -1385,13 +1385,9 @@ static int __devexit powernowk8_cpu_exit(struct cpufreq_policy *pol)
|
|
|
|
|
|
static unsigned int powernowk8_get(unsigned int cpu)
|
|
static unsigned int powernowk8_get(unsigned int cpu)
|
|
{
|
|
{
|
|
- struct powernow_k8_data *data;
|
|
|
|
|
|
+ struct powernow_k8_data *data = per_cpu(powernow_data, cpu);
|
|
cpumask_t oldmask = current->cpus_allowed;
|
|
cpumask_t oldmask = current->cpus_allowed;
|
|
unsigned int khz = 0;
|
|
unsigned int khz = 0;
|
|
- unsigned int first;
|
|
|
|
-
|
|
|
|
- first = cpumask_first(cpu_core_mask(cpu));
|
|
|
|
- data = per_cpu(powernow_data, first);
|
|
|
|
|
|
|
|
if (!data)
|
|
if (!data)
|
|
return -EINVAL;
|
|
return -EINVAL;
|