Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375699
b: refs/heads/master
c: ca182ae
h: refs/heads/master
i:
  375697: 682d803
  375695: bd198f2
v: v3
  • Loading branch information
Dirk Brandewie authored and Rafael J. Wysocki committed May 12, 2013
1 parent 6bb4257 commit bcfd420
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d8f469e9cff3bc4a6317d923e9506be046aa7bdc
refs/heads/master: ca182aee389f8026401510f4c63841cb02c820e8
10 changes: 2 additions & 8 deletions trunk/drivers/cpufreq/intel_pstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit bcfd420

Please sign in to comment.