From b954fb684c1f7295930681fbb5429004e7a8a949 Mon Sep 17 00:00:00 2001 From: Todd Poynor Date: Sun, 16 Oct 2011 22:40:29 -0700 Subject: [PATCH] cpufreq: interactive governor: default timer 10ms, maxspeed load 95% 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 --- drivers/cpufreq/cpufreq_interactive.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c index d60cb380add1..adf5f6856299 100644 --- a/drivers/cpufreq/cpufreq_interactive.c +++ b/drivers/cpufreq/cpufreq_interactive.c @@ -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; /* @@ -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,