summaryrefslogtreecommitdiff
path: root/include/drm/ttm/ttm_bo_driver.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2020-08-04 12:56:28 +1000
committerDave Airlie <airlied@redhat.com>2020-08-06 13:12:40 +1000
commit90a0489a718b87bc0674792f9eafac007e0ea3d6 (patch)
treea4ae53e808b1b49c329b9d8f7ec1b55223df74db /include/drm/ttm/ttm_bo_driver.h
parenta751612d4cb77779669da0a6d19fbc4f7e72ba6f (diff)
drm/ttm: drop type manager has_type
under driver control, this flag isn't needed anymore, remove the API that used to access it, and consoldiate with the used api. Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200804025632.3868079-56-airlied@gmail.com
Diffstat (limited to 'include/drm/ttm/ttm_bo_driver.h')
-rw-r--r--include/drm/ttm/ttm_bo_driver.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h
index 2cb8721398ee..a6076ab89a51 100644
--- a/include/drm/ttm/ttm_bo_driver.h
+++ b/include/drm/ttm/ttm_bo_driver.h
@@ -111,7 +111,6 @@ struct ttm_mem_type_manager_func {
/**
* struct ttm_mem_type_manager
*
- * @has_type: The memory type has been initialized.
* @use_type: The memory type is enabled.
* @flags: TTM_MEMTYPE_XX flags identifying the traits of the memory
* managed by this memory type.
@@ -141,8 +140,6 @@ struct ttm_mem_type_manager {
/*
* No protection. Constant from start.
*/
-
- bool has_type;
bool use_type;
bool use_tt;
uint64_t size;
@@ -689,24 +686,10 @@ static inline void ttm_bo_unreserve(struct ttm_buffer_object *bo)
*/
static inline void ttm_mem_type_manager_set_used(struct ttm_mem_type_manager *man, bool used)
{
- man->has_type = true;
man->use_type = used;
}
/**
- * ttm_mem_type_manager_disable.
- *
- * @man: A memory manager object.
- *
- * Indicate the manager is not to be used and deregistered. (temporary during rework).
- */
-static inline void ttm_mem_type_manager_disable(struct ttm_mem_type_manager *man)
-{
- man->has_type = false;
- man->use_type = false;
-}
-
-/**
* ttm_mem_type_manager_cleanup
*
* @man: A memory manager object.