diff options
author | Todd Poynor <toddpoynor@google.com> | 2012-09-24 18:03:58 -0700 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2012-10-11 14:41:00 -0400 |
commit | 09f64103963fe487002710aac99aa28e26a2a31b (patch) | |
tree | 98a6258959fb70fd0b9fc8fa6a5bdcfb4bf09dcc /drivers | |
parent | 47b8ebdef188f0f53a05dc44e4a1271bacbd1dd8 (diff) |
cpufreq: interactive: always limit initial speed bump to hispeed
First bump speed up to hispeed_freq whenever the current speed is below
hispeed_freq, instead of only when the current speed is the minimum speed.
The previous code made it too difficult to use hispeed_freq as a common
intermediate speed on systems that frequently run at speeds between
minimum and hispeed_freq.
Change-Id: I04ec30bafabf5741e267ff289209b8c2d846824b
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/cpufreq/cpufreq_interactive.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c index 6fb3eee3bca5..6853343b61b6 100644 --- a/drivers/cpufreq/cpufreq_interactive.c +++ b/drivers/cpufreq/cpufreq_interactive.c @@ -177,7 +177,8 @@ static void cpufreq_interactive_timer(unsigned long data) cpu_load = load_since_change; if (cpu_load >= go_hispeed_load || boost_val) { - if (pcpu->target_freq <= pcpu->policy->min) { + if (pcpu->target_freq < hispeed_freq && + hispeed_freq < pcpu->policy->max) { new_freq = hispeed_freq; } else { new_freq = pcpu->policy->max * cpu_load / 100; |