summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2011-11-20 09:52:46 +0800
committerAndy Green <andy.green@linaro.org>2011-11-20 10:08:50 +0800
commit7fb1c965243a22951ae9e72f242f70ca4784c3bc (patch)
tree0d9ddbaa27dc3c3965c28faa1012111075f9ba08 /drivers
parentd78fa11a35c74c19a103573311b9091b1c724397 (diff)
cpufreq: interactive governor: apply intermediate load on current speed
Calculate intermediate speed by applyng CPU load to current speed, not max speed. Change-Id: Idecf598b9a203b07c989c5d9e9c6efc67a1afc2e Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/cpufreq/cpufreq_interactive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c
index ca48223a855..17d276161d6 100644
--- a/drivers/cpufreq/cpufreq_interactive.c
+++ b/drivers/cpufreq/cpufreq_interactive.c
@@ -162,7 +162,7 @@ static void cpufreq_interactive_timer(unsigned long data)
if (cpu_load >= go_maxspeed_load)
new_freq = pcpu->policy->max;
else
- new_freq = pcpu->policy->max * cpu_load / 100;
+ new_freq = pcpu->policy->cur * cpu_load / 100;
if (cpufreq_frequency_table_target(pcpu->policy, pcpu->freq_table,
new_freq, CPUFREQ_RELATION_H,