diff options
author | 2018-06-27 13:53:53 +0800 | |
---|---|---|
committer | 2018-07-05 16:38:46 -0500 | |
commit | cc450654291bb40c2d67a04d7e2fb42bff7e162a (patch) | |
tree | 2b41b52c607ac5017344165f1287326b5c8fc20c /drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | |
parent | drm/amd/display: don't initialize result (diff) | |
download | linux-cc450654291bb40c2d67a04d7e2fb42bff7e162a.tar.gz linux-cc450654291bb40c2d67a04d7e2fb42bff7e162a.tar.bz2 linux-cc450654291bb40c2d67a04d7e2fb42bff7e162a.zip |
drm/amdgpu: remove duplicated codes
the fence_context and seqno is init in amdgpu_vm_manager_init() &
amdgpu_vmid_mgr_init(). remove the amdgpu_vmid_mgr_init() copy.
Signed-off-by: Flora Cui <Flora.Cui@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c index a1c78f90eadf..3a072a7a39f0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c @@ -578,11 +578,6 @@ void amdgpu_vmid_mgr_init(struct amdgpu_device *adev) list_add_tail(&id_mgr->ids[j].list, &id_mgr->ids_lru); } } - - adev->vm_manager.fence_context = - dma_fence_context_alloc(AMDGPU_MAX_RINGS); - for (i = 0; i < AMDGPU_MAX_RINGS; ++i) - adev->vm_manager.seqno[i] = 0; } /** |