diff options
author | Rob Clark <robdclark@chromium.org> | 2021-11-09 21:11:02 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2021-11-28 20:50:33 +0300 |
commit | 1d054c9b8457b56a651109fac21f56f46ccd46b2 (patch) | |
tree | b0b4f60771fd017eb4f3fda1a17beffe96e08328 /drivers/gpu/drm/msm/msm_gpu.c | |
parent | d8c00a81f11fefc25e27cd5b0bfc0092b02d722d (diff) | |
download | linux-1d054c9b8457b56a651109fac21f56f46ccd46b2.tar.xz |
drm/msm: Drop priv->lastctx
cur_ctx_seqno already does the same thing, but handles the edge cases
where a refcnt'd context can live after lastclose. So let's not have
two ways to do the same thing.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Akhil P Oommen <akhilpo@codeaurora.org>
Link: https://lore.kernel.org/r/20211109181117.591148-3-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu.c')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c index 2c46cd968ac4..3dfc58e6498f 100644 --- a/drivers/gpu/drm/msm/msm_gpu.c +++ b/drivers/gpu/drm/msm/msm_gpu.c @@ -763,7 +763,7 @@ void msm_gpu_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit) mutex_unlock(&gpu->active_lock); gpu->funcs->submit(gpu, submit); - priv->lastctx = submit->queue->ctx; + gpu->cur_ctx_seqno = submit->queue->ctx->seqno; hangcheck_timer_reset(gpu); } |