Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Maarten Lankhorst and committed by
Dave Airlie
8f262540 8bd4ce56

-14
-14
include/drm/ttm/ttm_bo_api.h
··· 712 712 713 713 extern 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 - */ 724 - static inline bool ttm_bo_is_reserved(struct ttm_buffer_object *bo) 725 - { 726 - return ww_mutex_is_locked(&bo->resv->lock); 727 - } 728 - 729 715 #endif