mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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>
This commit is contained in:
parent
a1e1951420
commit
1f53ef2dc1
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue