drm/ttm: consistently use reservation_object_unlock

Instead of having a confusing wrapper or call the underlying ww_mutex
function directly.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Christian König
2017-11-08 14:38:34 +01:00
committed by Alex Deucher
parent a376b0cedb
commit 36a0680aac
4 changed files with 13 additions and 24 deletions

View File

@@ -940,18 +940,6 @@ static inline int ttm_bo_reserve_slowpath(struct ttm_buffer_object *bo,
return ret;
}
/**
* __ttm_bo_unreserve
* @bo: A pointer to a struct ttm_buffer_object.
*
* Unreserve a previous reservation of @bo where the buffer object is
* already on lru lists.
*/
static inline void __ttm_bo_unreserve(struct ttm_buffer_object *bo)
{
ww_mutex_unlock(&bo->resv->lock);
}
/**
* ttm_bo_unreserve
*
@@ -966,7 +954,7 @@ static inline void ttm_bo_unreserve(struct ttm_buffer_object *bo)
ttm_bo_add_to_lru(bo);
spin_unlock(&bo->glob->lru_lock);
}
__ttm_bo_unreserve(bo);
reservation_object_unlock(bo->resv);
}
/**