|
@@ -905,14 +905,17 @@ static int powernowk8_target(struct cpufreq_policy *pol, unsigned targfreq, unsi
|
|
{
|
|
{
|
|
cpumask_t oldmask = CPU_MASK_ALL;
|
|
cpumask_t oldmask = CPU_MASK_ALL;
|
|
struct powernow_k8_data *data = powernow_data[pol->cpu];
|
|
struct powernow_k8_data *data = powernow_data[pol->cpu];
|
|
- u32 checkfid = data->currfid;
|
|
|
|
- u32 checkvid = data->currvid;
|
|
|
|
|
|
+ u32 checkfid;
|
|
|
|
+ u32 checkvid;
|
|
unsigned int newstate;
|
|
unsigned int newstate;
|
|
int ret = -EIO;
|
|
int ret = -EIO;
|
|
|
|
|
|
if (!data)
|
|
if (!data)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
+ checkfid = data->currfid;
|
|
|
|
+ checkvid = data->currvid;
|
|
|
|
+
|
|
/* only run on specific CPU from here on */
|
|
/* only run on specific CPU from here on */
|
|
oldmask = current->cpus_allowed;
|
|
oldmask = current->cpus_allowed;
|
|
set_cpus_allowed(current, cpumask_of_cpu(pol->cpu));
|
|
set_cpus_allowed(current, cpumask_of_cpu(pol->cpu));
|