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
This commit is contained in:
Christian König
2022-05-09 13:26:49 +02:00
parent 41d351f295
commit 13acb368bf
4 changed files with 39 additions and 36 deletions

View File

@@ -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