summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2011-10-27 18:25:59 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:39:17 -0800
commitc50272ac294c648c23e9b90054f93efac8da5544 (patch)
treedd1f5eac2d2074f7d21513ed78d4fae6924531cd /drivers
parentd4cf91771b45eed5c9c090456c77363fdbf509e1 (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 e1d5015f1f5e..a085fc86733b 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,