Skip to content

Commit 4c7894c

Browse files
author
Ruchi Kandoi
committed
cpufreq: interactive: prevents the frequency to directly raise above the
hispeed_freq from a lower frequency. When the load was below go_hispeed_load, there is a possibility that choose_freq() would return a frequency which would be higher than the hispeed_freq. According to the policy we should first jump to the hispeed_freq, stay there for above_hispeed_delay and then be allowed to raise higher than that. Added a check to prevent the frequency to be directly raised to something higher than the hispeed_freq. Change-Id: Icda5d848dd9beadcc18835082ddf269732c75bd0 Signed-off-by: Ruchi Kandoi <[email protected]>
1 parent 186197b commit 4c7894c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/cpufreq/cpufreq_interactive.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,9 @@ static void cpufreq_interactive_timer(unsigned long data)
417417
}
418418
} else {
419419
new_freq = choose_freq(pcpu, loadadjfreq);
420+
if (new_freq > tunables->hispeed_freq &&
421+
pcpu->target_freq < tunables->hispeed_freq)
422+
new_freq = tunables->hispeed_freq;
420423
}
421424

422425
if (pcpu->target_freq >= tunables->hispeed_freq &&

0 commit comments

Comments
 (0)