Todd Poynor  committed c4483b5

cpufreq: interactive: base above_hispeed_delay on target freq, not current

Time to wait should be based on the intended target speed, not the
actual speed (which may be held high by another CPU).

Change-Id: Ifc5bb55d06adddb9a02af90af05398a78f282272
Reported-by: Arve Hjønnevåg <>
Signed-off-by: Todd Poynor <>

  • Participants
  • Parent commits 41f4818
  • Branches android-3.4

Comments (0)

Files changed (1)

File drivers/cpufreq/cpufreq_interactive.c

 	if (pcpu->target_freq >= hispeed_freq &&
 	    new_freq > pcpu->target_freq &&
 	    now - pcpu->hispeed_validate_time <
-	    freq_to_above_hispeed_delay(pcpu->policy->cur)) {
+	    freq_to_above_hispeed_delay(pcpu->target_freq)) {
 			data, cpu_load, pcpu->target_freq,
 			pcpu->policy->cur, new_freq);