kgsl: merge Interactive GPU governor.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>

Change-Id: I26b49bb8fe221c3e831df00407ef8a914d486a7f
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
msm: gpu: merge algorithm improvements from hammerhead.

Change-Id: I582192c4e035cf46c4002b1a882375762477fc73
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
msm: kgsl: small calculation change.

Change-Id: I05cb50ae7b8988dd744f753ab6407bd8e032aad2
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
msm: kgsl: no need to cast long because jiffies and window_time are already long.

Change-Id: I5f45ecf2c2b95f289c9ac4e62af16c032086be27
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
msm: kgsl: change the load calculation equation & fix a couple of bugs, one of 'em was keeping the GPU on 320MHz if the GPU was not sleeping.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Change-Id: Iaa4eacf3a1351519c25ec1f01c2fc3f472d43c6a
msm: kgsl: don't forcefully ramp down on sleep if there's still load higher than down_threshold.

Change-Id: Id7dfb3854a75d8ad00e429318ab372e7b1e92adc
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
msm: kgsl: remove the sample_time_ms and let the governor run its idle_check freely like Qualcomm intends. I was seeing some frames being lost because the sample_time_ms was too big.

Change-Id: Ie0a8b87dd1ed271b75777dcaaeb097f6d51838f2
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
msm: kgsl: remove obsolete code.

Change-Id: Icea069b53c51e6d1f864681e4d294c9c491963f3
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>