|
@@ -113,10 +113,8 @@ processor_get_freq (
|
|
|
|
|
|
saved_mask = current->cpus_allowed;
|
|
|
set_cpus_allowed(current, cpumask_of_cpu(cpu));
|
|
|
- if (smp_processor_id() != cpu) {
|
|
|
- ret = -EAGAIN;
|
|
|
+ if (smp_processor_id() != cpu)
|
|
|
goto migrate_end;
|
|
|
- }
|
|
|
|
|
|
/* processor_get_pstate gets the instantaneous frequency */
|
|
|
ret = processor_get_pstate(&value);
|
|
@@ -125,7 +123,7 @@ processor_get_freq (
|
|
|
set_cpus_allowed(current, saved_mask);
|
|
|
printk(KERN_WARNING "get performance failed with error %d\n",
|
|
|
ret);
|
|
|
- ret = -EAGAIN;
|
|
|
+ ret = 0;
|
|
|
goto migrate_end;
|
|
|
}
|
|
|
clock_freq = extract_clock(data, value, cpu);
|