From a00b5d05836bc10750e9a48e83d13eba1e7492b6 Mon Sep 17 00:00:00 2001 From: Lynus Vaz Date: Tue, 24 Oct 2017 15:47:44 +0530 Subject: [PATCH] msm: kgsl: Update the dispatcher timer properly The dispatcher timer should be updated if preemption is not in progress. This schedules the dispatcher work in case the command does not make progress. Change-Id: I9ef55b12d7a4f07a3c5bba650e37453bd8f86ce3 Signed-off-by: Lynus Vaz --- drivers/gpu/msm/adreno_dispatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/msm/adreno_dispatch.c b/drivers/gpu/msm/adreno_dispatch.c index 862d832823f7..fc7799722026 100644 --- a/drivers/gpu/msm/adreno_dispatch.c +++ b/drivers/gpu/msm/adreno_dispatch.c @@ -677,7 +677,7 @@ static int sendcmd(struct adreno_device *adreno_dev, * then set up the timer. If this misses, then preemption is indeed a * thing and the timer will be set up in due time */ - if (!adreno_in_preempt_state(adreno_dev, ADRENO_PREEMPT_NONE)) { + if (adreno_in_preempt_state(adreno_dev, ADRENO_PREEMPT_NONE)) { if (drawqueue_is_current(dispatch_q)) mod_timer(&dispatcher->timer, dispatch_q->expires); }