projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2665c41
)
cpufreq: interactive governor: apply intermediate load on current speed
author
Todd Poynor
<toddpoynor@google.com>
Fri, 28 Oct 2011 01:25:59 +0000
(18:25 -0700)
committer
Todd Poynor
<toddpoynor@google.com>
Thu, 10 Nov 2011 02:57:57 +0000
(18:57 -0800)
Calculate intermediate speed by applyng CPU load to current speed, not
max speed.
Change-Id: Idecf598b9a203b07c989c5d9e9c6efc67a1afc2e
Signed-off-by: Todd Poynor <toddpoynor@google.com>
drivers/cpufreq/cpufreq_interactive.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/cpufreq_interactive.c
b/drivers/cpufreq/cpufreq_interactive.c
index e1d5015f1f5e55832cac614fca1ad8e4050c0fe2..a085fc86733b076fa947000cb625b1acb4226b08 100644
(file)
--- 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,