diff options
author | Christian König <christian.koenig@amd.com> | 2022-05-09 13:26:49 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2023-01-18 15:57:52 +0100 |
commit | 13acb368bf02c4ab2c3bd7c35629b421b0ceed18 (patch) | |
tree | 42e05d97631b8338f5b0fa5766b2c148a344fadb /drivers/gpu/drm/vmwgfx | |
parent | drm/nouveau: stop using ttm_bo_wait (diff) | |
download | linux-13acb368bf02c4ab2c3bd7c35629b421b0ceed18.tar.xz linux-13acb368bf02c4ab2c3bd7c35629b421b0ceed18.zip |
drm/ttm/vmwgfx: move ttm_bo_wait into VMWGFX
Not used anymore by other drivers or TTM itself.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Zack Rusin <zackr@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221125102137.1801-9-christian.koenig@amd.com
Diffstat (limited to 'drivers/gpu/drm/vmwgfx')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/ttm_object.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/ttm_object.h b/drivers/gpu/drm/vmwgfx/ttm_object.h index f0ebbe340ad6..95a9679f9d39 100644 --- a/drivers/gpu/drm/vmwgfx/ttm_object.h +++ b/drivers/gpu/drm/vmwgfx/ttm_object.h @@ -42,6 +42,8 @@ #include <linux/list.h> #include <linux/rcupdate.h> +#include <drm/ttm/ttm_bo.h> + /** * enum ttm_object_type * @@ -321,4 +323,13 @@ static inline void ttm_base_object_noref_release(void) __acquire(RCU); rcu_read_unlock(); } + +static inline int ttm_bo_wait(struct ttm_buffer_object *bo, bool intr, + bool no_wait) +{ + struct ttm_operation_ctx ctx = { intr, no_wait }; + + return ttm_bo_wait_ctx(bo, &ctx); +} + #endif |