Revert "cpufreq: interactive: this governor is fundamentally different from Ondemand and by norm its a bit more sensitive to load changes in terms of which freqs are chosen, but even though sometimes it can be a little stupid and non react to load changes that linearly as one could hope for (even though it's better than Ondemand) so for that reason let's try to use this new formula by @stratosk found in this commit: https://github.com/stratosk/kernel_msm/commit/9df03b662b9c213c75ac082138f5ab8afadb9d94 make sure you read his commit message for better understanding of this."

This reverts commit 8610ed6e436952784c2176e36787debc5f9a9eba.

Signed-off-by: Dan Trifan <jimsth@gmail.com>
Revert "cpufreq: interactive: fix another derp"

This reverts commit dbcf3108fc7ff5dc78c266b90e24d723e7163ffa.

Signed-off-by: Dan Trifan <jimsth@gmail.com>
Revert "cpufreq: interactive: merge https://github.com/android/kernel_common/commit/4c7894cb01c7544225d5fcfb0fcb1d11fd2d1777 and fix a small code shit."

This reverts commit 84f75701c3ff6beeb3916f868a1889a12d133fc6.

Signed-off-by: Dan Trifan <jimsth@gmail.com>
cpufreq: interactive: Simplify frequency calculations

Previously, complicated calculations led to oscillating cpu
frequencies that ruined user experience even on high-end
devices. Revert to the classic calculations based on a
percentage of current max frequency.  This way, we're using
freqs more evenly and much more predictable.

Signed-off-by: Dan Trifan <jimsth@gmail.com>
cpufreq: interactive: Consider changed min limit a frequency boost

A changed policy->min can safely be considered a frequency boost.
Process this change analogous to the cpufreq_interactive_boost()
routine.

Signed-off-by: Dan Trifan <jimsth@gmail.com>
cpufreq: interactive: Honor boosted state in several timer calculations

Signed-off-by: Dan Trifan <jimsth@gmail.com>
cpufreq: interactive: fix revert derps

Signed-off-by: Dan Trifan <jimsth@gmail.com>