From: Todd Poynor Date: Mon, 17 Oct 2011 05:40:29 +0000 (-0700) Subject: cpufreq: interactive governor: default timer 10ms, maxspeed load 95% X-Git-Tag: firefly_0821_release~7613^2~265 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2cc01eb245d167c4769dd7de0250ec8e8d3bff98;p=firefly-linux-kernel-4.4.55.git 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 --- 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,