mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
drm/radeon: get rid of ttm_bo_is_reserved usage
Try to use lockdep_assert_held or other alternatives where possible. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Reviewed-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
009a9dadb6
commit
977c38d50e
3 changed files with 43 additions and 45 deletions
|
@ -98,11 +98,6 @@ static inline unsigned long radeon_bo_size(struct radeon_bo *bo)
|
|||
return bo->tbo.num_pages << PAGE_SHIFT;
|
||||
}
|
||||
|
||||
static inline bool radeon_bo_is_reserved(struct radeon_bo *bo)
|
||||
{
|
||||
return ttm_bo_is_reserved(&bo->tbo);
|
||||
}
|
||||
|
||||
static inline unsigned radeon_bo_ngpu_pages(struct radeon_bo *bo)
|
||||
{
|
||||
return (bo->tbo.num_pages << PAGE_SHIFT) / RADEON_GPU_PAGE_SIZE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue