mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 23:51:39 +00:00
drm/msm: fix double struct_mutex acquire
Mutex is already grabbed in show_locked().. somehow this slipped through. Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
c759606c96
commit
b544021f18
@ -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",
|
||||
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user