msm: kgsl: Fix a logical error in the gpu hang detection code

Change the GPU hang detection code to avoid the normal case is
mistakely treated as GPU hang scenario.

CRs-Fixed: 378488
Change-Id: Ie79a8d91e35c51ba043e7a845c9a56266277f1a0
Signed-off-by: Wei Zou <wzou@codeaurora.org>
This commit is contained in:
Wei Zou
2012-07-17 15:46:52 -07:00
committed by Stephen Boyd
parent a8fdfa0347
commit 985df205dc

View File

@@ -120,6 +120,8 @@ adreno_ringbuffer_waitspace(struct adreno_ringbuffer *rb, unsigned int numcmds,
goto err;
}
continue;
err:
if (!adreno_dump_and_recover(rb->device))
wait_time = jiffies + wait_timeout;