summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/cpufreq/cpufreq_interactive.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c
index c18c20d5fe54..4d091383dbda 100644
--- a/drivers/cpufreq/cpufreq_interactive.c
+++ b/drivers/cpufreq/cpufreq_interactive.c
@@ -508,11 +508,11 @@ static void __cpufreq_interactive_timer(unsigned long data, bool is_notif)
}
spin_lock_irqsave(&ppol->target_freq_lock, flags);
- cpu_load = loadadjfreq / ppol->policy->cur;
+ cpu_load = loadadjfreq / ppol->target_freq;
tunables->boosted = tunables->boost_val || now < tunables->boostpulse_endtime;
if (cpu_load >= tunables->go_hispeed_load || tunables->boosted) {
- if (ppol->policy->cur < tunables->hispeed_freq &&
+ if (ppol->target_freq < tunables->hispeed_freq &&
(!tunables->fast_ramp_up || cpu_load <= MAX_LOCAL_LOAD)) {
new_freq = tunables->hispeed_freq;
} else {
@@ -529,10 +529,10 @@ static void __cpufreq_interactive_timer(unsigned long data, bool is_notif)
}
if ((!tunables->fast_ramp_up || cpu_load <= MAX_LOCAL_LOAD) &&
- ppol->policy->cur >= tunables->hispeed_freq &&
- new_freq > ppol->policy->cur &&
+ ppol->target_freq >= tunables->hispeed_freq &&
+ new_freq > ppol->target_freq &&
now - ppol->hispeed_validate_time <
- freq_to_above_hispeed_delay(tunables, ppol->policy->cur)) {
+ freq_to_above_hispeed_delay(tunables, ppol->target_freq)) {
trace_cpufreq_interactive_notyet(
max_cpu, cpu_load, ppol->target_freq,
ppol->policy->cur, new_freq);