Skip to content

Commit

Permalink
drm/msm: fix double struct_mutex acquire
Browse files Browse the repository at this point in the history
Mutex is already grabbed in show_locked().. somehow this slipped
through.

Signed-off-by: Rob Clark <robdclark@gmail.com>
  • Loading branch information
Rob Clark committed Aug 4, 2014
1 parent c759606 commit b544021
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/gpu/drm/msm/adreno/a3xx_gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,10 @@ static const unsigned int a3xx_registers[] = {
#ifdef CONFIG_DEBUG_FS
static void a3xx_show(struct msm_gpu *gpu, struct seq_file *m)
{
struct drm_device *dev = gpu->dev;
int i;

adreno_show(gpu, m);

mutex_lock(&dev->struct_mutex);

gpu->funcs->pm_resume(gpu);

seq_printf(m, "status: %08x\n",
Expand All @@ -418,8 +415,6 @@ static void a3xx_show(struct msm_gpu *gpu, struct seq_file *m)
}

gpu->funcs->pm_suspend(gpu);

mutex_unlock(&dev->struct_mutex);
}
#endif

Expand Down

0 comments on commit b544021

Please sign in to comment.