cpufreq: interactive: prevents the frequency to directly raise above the
authorRuchi Kandoi <kandoiruchi@google.com>
Fri, 13 Jun 2014 23:24:15 +0000 (16:24 -0700)
committerRuchi Kandoi <kandoiruchi@google.com>
Fri, 13 Jun 2014 23:56:14 +0000 (16:56 -0700)
commit4c7894cb01c7544225d5fcfb0fcb1d11fd2d1777
treebaf5c4a1a9b6b5b830508bb38ee4c512eb0b4fb3
parent186197b12c189b9572a9e739d954674af77549ee
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