msm: kgsl: Jump to turbo on late resume without DCVS
Without this change it may happen that gpu will
never go to turbo on late resume in absence of
gpu dcvs. This change will ensure that it will
go to turbo.
Change-Id: I89a367a0a5360f78210921baaab49029e1726f7d
Signed-off-by: Nilesh Shah <nsshah@codeaurora.org>
diff --git a/drivers/gpu/msm/kgsl.c b/drivers/gpu/msm/kgsl.c
index a2234f3..2ce2f2b 100644
--- a/drivers/gpu/msm/kgsl.c
+++ b/drivers/gpu/msm/kgsl.c
@@ -651,6 +651,8 @@
KGSL_PWR_WARN(device, "late resume start\n");
mutex_lock(&device->mutex);
device->pwrctrl.restore_slumber = 0;
+ if (device->pwrscale.policy == NULL)
+ kgsl_pwrctrl_pwrlevel_change(device, KGSL_PWRLEVEL_TURBO);
kgsl_pwrctrl_wake(device);
mutex_unlock(&device->mutex);
kgsl_check_idle(device);