From: Ziggy471 Date: Mon, 13 Dec 2010 19:02:34 +0000 (-0500) Subject: 50K sampling for conservative Gov X-Git-Url: https://ziggy471.com/git/gitweb.cgi?p=ziggy471-frankenstein-kernel.git;a=commitdiff;h=acf0a09dfc97af7c8e7468e580dccffa12f85de8 50K sampling for conservative Gov --- --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c @@ -29,8 +29,8 @@ * It helps to keep variable names smaller, simpler */ -#define DEF_FREQUENCY_UP_THRESHOLD (80) -#define DEF_FREQUENCY_DOWN_THRESHOLD (20) +#define DEF_FREQUENCY_UP_THRESHOLD (60) // 80 +#define DEF_FREQUENCY_DOWN_THRESHOLD (35) /* * The polling frequency of this governor depends on the capability of @@ -42,7 +42,7 @@ * this governor will not work. * All times here are in uS. */ -#define MIN_SAMPLING_RATE_RATIO (2) +#define MIN_SAMPLING_RATE_RATIO (1) // 2 static unsigned int min_sampling_rate; @@ -95,7 +95,7 @@ static struct dbs_tuners { .down_threshold = DEF_FREQUENCY_DOWN_THRESHOLD, .sampling_down_factor = DEF_SAMPLING_DOWN_FACTOR, .ignore_nice = 0, - .freq_step = 5, + .freq_step = 15, // 5 }; static inline cputime64_t get_cpu_idle_time_jiffy(unsigned int cpu, @@ -569,7 +569,7 @@ static int cpufreq_governor_dbs(struct c * governor, thus we are bound to jiffes/HZ */ min_sampling_rate = - MIN_SAMPLING_RATE_RATIO * jiffies_to_usecs(10); + MIN_SAMPLING_RATE_RATIO * jiffies_to_usecs(5); // 10 /* Bring kernel and HW constraints together */ min_sampling_rate = max(min_sampling_rate, MIN_LATENCY_MULTIPLIER * latency); @@ -671,3 +671,4 @@ fs_initcall(cpufreq_gov_dbs_init); module_init(cpufreq_gov_dbs_init); #endif module_exit(cpufreq_gov_dbs_exit); +