diff options
author | Christian König <christian.koenig@amd.com> | 2014-07-30 15:04:55 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-08-05 08:53:53 -0400 |
commit | e7e31600d3e2f8b7726b0521149fc55c62a90467 (patch) | |
tree | deb9ed61fe5b5b583b8b065b34c643a7c9511815 /drivers/gpu/drm/radeon/radeon_object.c | |
parent | dfc230f9aff93cc67faf7e0e191dbb3dd7c6ecbb (diff) |
drm/radeon: remove taking mclk_lock from radeon_bo_unref
It's causing lockdep warnings and why should
we access the memory that is freed up?
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_object.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_object.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index 78b74c88d145..9505766e46dd 100644 --- a/drivers/gpu/drm/radeon/radeon_object.c +++ b/drivers/gpu/drm/radeon/radeon_object.c | |||
@@ -245,9 +245,7 @@ void radeon_bo_unref(struct radeon_bo **bo) | |||
245 | return; | 245 | return; |
246 | rdev = (*bo)->rdev; | 246 | rdev = (*bo)->rdev; |
247 | tbo = &((*bo)->tbo); | 247 | tbo = &((*bo)->tbo); |
248 | down_read(&rdev->pm.mclk_lock); | ||
249 | ttm_bo_unref(&tbo); | 248 | ttm_bo_unref(&tbo); |
250 | up_read(&rdev->pm.mclk_lock); | ||
251 | if (tbo == NULL) | 249 | if (tbo == NULL) |
252 | *bo = NULL; | 250 | *bo = NULL; |
253 | } | 251 | } |