Skip to content

Commit

Permalink
cpufreq: interactive governor: default timer 10ms, maxspeed load 95%
Browse files Browse the repository at this point in the history
Modify default timer from 30ms to 10ms, sampling 2 jiffies after
idle exit on ARM as in Honeycomb.

Modify default go_maxspeed_load from 85% loaded to 95% loaded, for
use in phones where power savings is more important (tablets may be
best served overriding this).

Change-Id: I3361a6279979bfae1df5262666a2e30ea7a44328
Signed-off-by: Todd Poynor <toddpoynor@google.com>
  • Loading branch information
toddpoynor authored and renaudallard committed Nov 16, 2011
1 parent 7aff1e7 commit b954fb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/cpufreq/cpufreq_interactive.c
Expand Up @@ -59,7 +59,7 @@ static spinlock_t down_cpumask_lock;
static struct mutex set_speed_lock;

/* Go to max speed when CPU load at or above this value. */
#define DEFAULT_GO_MAXSPEED_LOAD 85
#define DEFAULT_GO_MAXSPEED_LOAD 95
static unsigned long go_maxspeed_load;

/*
Expand All @@ -71,7 +71,7 @@ static unsigned long min_sample_time;
/*
* The sample rate of the timer used to increase frequency
*/
#define DEFAULT_TIMER_RATE 30000;
#define DEFAULT_TIMER_RATE 10000;
static unsigned long timer_rate;

static int cpufreq_governor_interactive(struct cpufreq_policy *policy,
Expand Down

0 comments on commit b954fb6

Please sign in to comment.