From d03949a0358ed224a2f3420904f78b9eb526cd3d Mon Sep 17 00:00:00 2001 From: Jiamin Ma Date: Tue, 12 Sep 2017 09:32:39 +0800 Subject: [PATCH] cpufreq: change interactive default parameters PD#138714: change interactive default parameters Change-Id: I1813cda0f52755486a72efd85f79b0a4cc108514 Signed-off-by: Jiamin Ma --- drivers/cpufreq/cpufreq_interactive.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c index 5a77d91..cd8057b 100644 --- a/drivers/cpufreq/cpufreq_interactive.c +++ b/drivers/cpufreq/cpufreq_interactive.c @@ -55,7 +55,7 @@ struct interactive_tunables { unsigned int hispeed_freq; /* Go to hi speed when CPU load at or above this value. */ -#define DEFAULT_GO_HISPEED_LOAD 99 +#define DEFAULT_GO_HISPEED_LOAD 95 unsigned long go_hispeed_load; /* Target load. Lower values result in higher CPU speeds. */ @@ -143,8 +143,9 @@ static cpumask_t speedchange_cpumask; static spinlock_t speedchange_cpumask_lock; /* Target load. Lower values result in higher CPU speeds. */ -#define DEFAULT_TARGET_LOAD 90 -static unsigned int default_target_loads[] = {DEFAULT_TARGET_LOAD}; +/* #define DEFAULT_TARGET_LOAD 50,900000,70 */ +static unsigned int default_target_loads[] = {50, 900000, 70}; +#define HIGH_SPEED 1000000 #define DEFAULT_SAMPLING_RATE (20 * USEC_PER_MSEC) #define DEFAULT_ABOVE_HISPEED_DELAY DEFAULT_SAMPLING_RATE @@ -1187,7 +1188,7 @@ int cpufreq_interactive_init(struct cpufreq_policy *policy) goto free_int_policy; } - tunables->hispeed_freq = policy->max; + tunables->hispeed_freq = HIGH_SPEED; tunables->above_hispeed_delay = default_above_hispeed_delay; tunables->nabove_hispeed_delay = ARRAY_SIZE(default_above_hispeed_delay); -- 2.7.4