cpufreq: interactive: prevents the frequency to directly raise above the hispeed_freq...
authorRuchi Kandoi <kandoiruchi@google.com>
Fri, 13 Jun 2014 23:24:15 +0000 (16:24 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:53:03 +0000 (13:53 -0800)
commitbc88e631b272563929476da0be3fef1dac10e70a
treef10a5216e1bab0eccdb911e021931da0b1ff11f5
parent61a37b31dc5bc921b5409271c29600825e91b7c5
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 <kandoiruchi@google.com>
drivers/cpufreq/cpufreq_interactive.c