aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq_interactive.c
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2012-04-06 01:13:09 -0700
committerTodd Poynor <toddpoynor@google.com>2012-04-09 15:06:33 -0700
commite661e9ba37039c77f8e1faaa231d810f12ac0790 (patch)
tree17d2c9c05dd365fd3a3f8906ec049e0183223616 /drivers/cpufreq/cpufreq_interactive.c
parentc78af4915cd85a3ceb40f46890d4e27bac501815 (diff)
downloadkernel_samsung_tuna-e661e9ba37039c77f8e1faaa231d810f12ac0790.zip
kernel_samsung_tuna-e661e9ba37039c77f8e1faaa231d810f12ac0790.tar.gz
kernel_samsung_tuna-e661e9ba37039c77f8e1faaa231d810f12ac0790.tar.bz2
cpufreq: interactive: apply intermediate load to max speed not current
Evaluate spikes in load (below go_hispeed_load) against the maximum speed supported by the device, not the current speed (which tends to make it too difficult to raise speed to intermediate levels until very busy). Change-Id: Ib937006abf8bedb60891a739acd733e89b732ae0 Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_interactive.c')
-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 7b4efd5..b141562 100644
--- a/drivers/cpufreq/cpufreq_interactive.c
+++ b/drivers/cpufreq/cpufreq_interactive.c
@@ -172,7 +172,7 @@ static void cpufreq_interactive_timer(unsigned long data)
else
new_freq = pcpu->policy->max * cpu_load / 100;
} else {
- new_freq = pcpu->policy->cur * cpu_load / 100;
+ new_freq = pcpu->policy->max * cpu_load / 100;
}
if (cpufreq_frequency_table_target(pcpu->policy, pcpu->freq_table,