mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-25 07:43:59 +00:00
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>
This commit is contained in:
parent
dfc230f9af
commit
e7e31600d3
1 changed files with 0 additions and 2 deletions
|
@ -245,9 +245,7 @@ void radeon_bo_unref(struct radeon_bo **bo)
|
|||
return;
|
||||
rdev = (*bo)->rdev;
|
||||
tbo = &((*bo)->tbo);
|
||||
down_read(&rdev->pm.mclk_lock);
|
||||
ttm_bo_unref(&tbo);
|
||||
up_read(&rdev->pm.mclk_lock);
|
||||
if (tbo == NULL)
|
||||
*bo = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue