Forráskód Böngészése

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>
Christian König 8 éve
szülő
commit
ed5b89c69c
1 módosított fájl, 5 hozzáadás és 2 törlés
  1. 5 2
      drivers/gpu/drm/amd/amdgpu/amdgpu_object.h

+ 5 - 2
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;
+	};
 };
 
 /**