|
@@ -551,22 +551,16 @@ static void intel_pstate_timer_func(unsigned long __data)
|
|
|
struct cpudata *cpu = (struct cpudata *) __data;
|
|
|
|
|
|
intel_pstate_sample(cpu);
|
|
|
+ intel_pstate_adjust_busy_pstate(cpu);
|
|
|
|
|
|
- if (!cpu->idle_mode)
|
|
|
- intel_pstate_adjust_busy_pstate(cpu);
|
|
|
- else
|
|
|
- intel_pstate_adjust_idle_pstate(cpu);
|
|
|
-
|
|
|
-#if defined(XPERF_FIX)
|
|
|
if (cpu->pstate.current_pstate == cpu->pstate.min_pstate) {
|
|
|
cpu->min_pstate_count++;
|
|
|
if (!(cpu->min_pstate_count % 5)) {
|
|
|
intel_pstate_set_pstate(cpu, cpu->pstate.max_pstate);
|
|
|
- intel_pstate_idle_mode(cpu);
|
|
|
}
|
|
|
} else
|
|
|
cpu->min_pstate_count = 0;
|
|
|
-#endif
|
|
|
+
|
|
|
intel_pstate_set_sample_time(cpu);
|
|
|
}
|
|
|
|