drm/radeon: remove taking mclk_lock from radeon_bo_unref
authorChristian König <christian.koenig@amd.com>
Wed, 30 Jul 2014 19:04:55 +0000 (21:04 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Aug 2014 12:53:53 +0000 (08:53 -0400)
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>
drivers/gpu/drm/radeon/radeon_object.c

index 78b74c88d1450ed9ef45a2a177a0ee6ffea893e0..9505766e46dd3f0dcdf31a6b99f61a8d4d2fad62 100644 (file)
@@ -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;
 }