diff options
author | Christian König <christian.koenig@amd.com> | 2017-07-20 17:58:19 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-08-15 14:45:54 -0400 |
commit | ed5b89c69cb037c5803c36050377c4b233fbf0b6 (patch) | |
tree | d8a53ea8c8f372d4306735b62d23a243e9885a8d /drivers/gpu | |
parent | 9124a3983bdee6e98cd1cfcbbfd9f65e69b97c6d (diff) |
drm/amdgpu: shadow and mn list are mutually exclusive
Save some memory because only one of those is used at all times.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index a401fe3bdd26..3b92d5236670 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |||
@@ -87,8 +87,11 @@ struct amdgpu_bo { | |||
87 | 87 | ||
88 | struct ttm_bo_kmap_obj dma_buf_vmap; | 88 | struct ttm_bo_kmap_obj dma_buf_vmap; |
89 | struct amdgpu_mn *mn; | 89 | struct amdgpu_mn *mn; |
90 | struct list_head mn_list; | 90 | |
91 | struct list_head shadow_list; | 91 | union { |
92 | struct list_head mn_list; | ||
93 | struct list_head shadow_list; | ||
94 | }; | ||
92 | }; | 95 | }; |
93 | 96 | ||
94 | /** | 97 | /** |