Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed5b89c6 authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

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: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 9124a398
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -87,9 +87,12 @@ struct amdgpu_bo {

	struct ttm_bo_kmap_obj		dma_buf_vmap;
	struct amdgpu_mn		*mn;

	union {
		struct list_head	mn_list;
		struct list_head	shadow_list;
	};
};

/**
 * amdgpu_mem_type_to_domain - return domain corresponding to mem_type