mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user