aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>2013-06-27 07:48:28 -0400
committerDave Airlie <airlied@redhat.com>2013-06-27 22:04:15 -0400
commit8f262540e61c7caaff791bde8336196ac7aca77a (patch)
treef258135d3155156a99773441e56b23ccfb766049 /include/drm
parent8bd4ce56783da6dc96484462ddb113417e52150c (diff)
drm/ttm: get rid of ttm_bo_is_reserved
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/ttm/ttm_bo_api.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h
index 31ad860c10cd..8a6aa56ece52 100644
--- a/include/drm/ttm/ttm_bo_api.h
+++ b/include/drm/ttm/ttm_bo_api.h
@@ -712,18 +712,4 @@ extern ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp,
712 712
713extern void ttm_bo_swapout_all(struct ttm_bo_device *bdev); 713extern void ttm_bo_swapout_all(struct ttm_bo_device *bdev);
714 714
715/**
716 * ttm_bo_is_reserved - return an indication if a ttm buffer object is reserved
717 *
718 * @bo: The buffer object to check.
719 *
720 * This function returns an indication if a bo is reserved or not, and should
721 * only be used to print an error when it is not from incorrect api usage, since
722 * there's no guarantee that it is the caller that is holding the reservation.
723 */
724static inline bool ttm_bo_is_reserved(struct ttm_buffer_object *bo)
725{
726 return ww_mutex_is_locked(&bo->resv->lock);
727}
728
729#endif 715#endif