diff options
| -rw-r--r-- | drivers/cpufreq/intel_pstate.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 4a437ffc5186..a7f1946b3452 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c | |||
| @@ -551,22 +551,16 @@ static void intel_pstate_timer_func(unsigned long __data) | |||
| 551 | struct cpudata *cpu = (struct cpudata *) __data; | 551 | struct cpudata *cpu = (struct cpudata *) __data; |
| 552 | 552 | ||
| 553 | intel_pstate_sample(cpu); | 553 | intel_pstate_sample(cpu); |
| 554 | intel_pstate_adjust_busy_pstate(cpu); | ||
| 554 | 555 | ||
| 555 | if (!cpu->idle_mode) | ||
| 556 | intel_pstate_adjust_busy_pstate(cpu); | ||
| 557 | else | ||
| 558 | intel_pstate_adjust_idle_pstate(cpu); | ||
| 559 | |||
| 560 | #if defined(XPERF_FIX) | ||
| 561 | if (cpu->pstate.current_pstate == cpu->pstate.min_pstate) { | 556 | if (cpu->pstate.current_pstate == cpu->pstate.min_pstate) { |
| 562 | cpu->min_pstate_count++; | 557 | cpu->min_pstate_count++; |
| 563 | if (!(cpu->min_pstate_count % 5)) { | 558 | if (!(cpu->min_pstate_count % 5)) { |
| 564 | intel_pstate_set_pstate(cpu, cpu->pstate.max_pstate); | 559 | intel_pstate_set_pstate(cpu, cpu->pstate.max_pstate); |
| 565 | intel_pstate_idle_mode(cpu); | ||
| 566 | } | 560 | } |
| 567 | } else | 561 | } else |
| 568 | cpu->min_pstate_count = 0; | 562 | cpu->min_pstate_count = 0; |
| 569 | #endif | 563 | |
| 570 | intel_pstate_set_sample_time(cpu); | 564 | intel_pstate_set_sample_time(cpu); |
| 571 | } | 565 | } |
| 572 | 566 | ||
