diff options
author | Todd Poynor <toddpoynor@google.com> | 2012-04-06 01:13:09 -0700 |
---|---|---|
committer | Todd Poynor <toddpoynor@google.com> | 2012-04-18 22:50:13 -0700 |
commit | 1f53ef2dc1ad4897a3ae67bba222d08fd32ac817 (patch) | |
tree | f2d0f761ff136d3e530b2450000e5ca8a1a7d5d5 /drivers | |
parent | a1e1951420229c30415b800660ca3de07f148c8d (diff) |
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')
-rw-r--r-- | drivers/cpufreq/cpufreq_interactive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c index 64078849faa..d0708c419ae 100644 --- a/drivers/cpufreq/cpufreq_interactive.c +++ b/drivers/cpufreq/cpufreq_interactive.c @@ -170,7 +170,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, |