cpufreq: interactive: prevents the frequency to directly raise above the hispeed_freq...
[firefly-linux-kernel-4.4.55.git] / drivers / cpufreq / cpufreq_interactive.c
index 6c4b6a895e0db24a1f0736c3faacbec758586cbc..f0e6fe220efb43654028870859d45a1c17f1eb7e 100644 (file)
@@ -377,6 +377,9 @@ static void cpufreq_interactive_timer(unsigned long data)
                }
        } else {
                new_freq = choose_freq(pcpu, loadadjfreq);
+               if (new_freq > tunables->hispeed_freq &&
+                               pcpu->target_freq < tunables->hispeed_freq)
+                       new_freq = tunables->hispeed_freq;
        }
 
        if (pcpu->target_freq >= tunables->hispeed_freq &&