diff options
author | Junwei Zhang <Jerry.Zhang@amd.com> | 2018-05-10 22:54:40 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-05-15 14:44:23 -0400 |
commit | 967c650d4973dd87355c8540a18e6fa58844e547 (patch) | |
tree | 296d29590a533bf5866285eaa7dd4b813fef3936 | |
parent | 9164e8b7b32edeea75bf713a61f8bd1701b9a61b (diff) |
drm/ttm: remove priority hard code when initializing ttm bo
Then priority could be set before initialization.
By default, it requires to kzalloc ttm bo. In fact, we always do so.
Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: David Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_bo.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 98e06f8bf23b..cba50151de18 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c | |||
@@ -1175,7 +1175,6 @@ int ttm_bo_init_reserved(struct ttm_bo_device *bdev, | |||
1175 | reservation_object_init(&bo->ttm_resv); | 1175 | reservation_object_init(&bo->ttm_resv); |
1176 | atomic_inc(&bo->bdev->glob->bo_count); | 1176 | atomic_inc(&bo->bdev->glob->bo_count); |
1177 | drm_vma_node_reset(&bo->vma_node); | 1177 | drm_vma_node_reset(&bo->vma_node); |
1178 | bo->priority = 0; | ||
1179 | 1178 | ||
1180 | /* | 1179 | /* |
1181 | * For ttm_bo_type_device buffers, allocate | 1180 | * For ttm_bo_type_device buffers, allocate |