mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
msm: kgsl: Use the correct units for ADRENO_IDLE_TIMEOUT
In a few spots the ADRENO_IDLE_TIMEOUT value (measured in milliseconds) was used directly for jiffy calculations resulting in timeouts that were 1000/HZ times longer than they should have been. Use msecs_to_jiffies for these situations. CRs-Fixed: 448226 Change-Id: Ic0dedbad33630706d909931bf616bd69399f7ff1 Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
This commit is contained in:
parent
5ce75a60d8
commit
8caa8d37a8
1 changed files with 2 additions and 2 deletions
|
@ -1889,7 +1889,7 @@ retry:
|
|||
goto err;
|
||||
|
||||
/* now, wait for the GPU to finish its operations */
|
||||
wait_time = jiffies + ADRENO_IDLE_TIMEOUT;
|
||||
wait_time = jiffies + msecs_to_jiffies(ADRENO_IDLE_TIMEOUT);
|
||||
wait_time_part = jiffies + msecs_to_jiffies(KGSL_TIMEOUT_PART);
|
||||
|
||||
while (time_before(jiffies, wait_time)) {
|
||||
|
@ -1918,7 +1918,7 @@ err:
|
|||
KGSL_DRV_ERR(device, "spun too long waiting for RB to idle\n");
|
||||
if (KGSL_STATE_DUMP_AND_RECOVER != device->state &&
|
||||
!adreno_dump_and_recover(device)) {
|
||||
wait_time = jiffies + ADRENO_IDLE_TIMEOUT;
|
||||
wait_time = jiffies + msecs_to_jiffies(ADRENO_IDLE_TIMEOUT);
|
||||
goto retry;
|
||||
}
|
||||
return -ETIMEDOUT;
|
||||
|
|
Loading…
Reference in a new issue