summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-07-20 23:58:19 +0200
committerAlex Deucher <alexander.deucher@amd.com>2017-08-15 14:45:54 -0400
commited5b89c69cb037c5803c36050377c4b233fbf0b6 (patch)
treed8a53ea8c8f372d4306735b62d23a243e9885a8d /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
parent9124a3983bdee6e98cd1cfcbbfd9f65e69b97c6d (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/drm/amd/amdgpu/amdgpu_object.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.h7
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 {
struct ttm_bo_kmap_obj dma_buf_vmap;
struct amdgpu_mn *mn;
- struct list_head mn_list;
- struct list_head shadow_list;
+
+ union {
+ struct list_head mn_list;
+ struct list_head shadow_list;
+ };
};
/**