diff options
| author | Christian König <christian.koenig@amd.com> | 2016-02-15 16:59:57 +0100 | 
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2016-02-16 17:46:24 -0500 | 
| commit | 418aa0c296ddb5df90c4e94f995cfd3f3c9e96dc (patch) | |
| tree | ad4be1eb7a8537b33c479418f6f749f7f827f1d2 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | 7ea235653328644b5ba8707e65484446a118e193 (diff) | |
drm/amdgpu: cleanup gem init/finit
Remove the double housekeeping and use something sane to
forcefuly delete BOs on unload.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 9 | 
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 4be61f0ed19d..f5bac97a438b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -607,13 +607,7 @@ struct amdgpu_sa_bo {  /*   * GEM objects.   */ -struct amdgpu_gem { -	struct mutex		mutex; -	struct list_head	objects; -}; - -int amdgpu_gem_init(struct amdgpu_device *adev); -void amdgpu_gem_fini(struct amdgpu_device *adev); +void amdgpu_gem_force_release(struct amdgpu_device *adev);  int amdgpu_gem_object_create(struct amdgpu_device *adev, unsigned long size,  				int alignment, u32 initial_domain,  				u64 flags, bool kernel, @@ -2012,7 +2006,6 @@ struct amdgpu_device {  	/* memory management */  	struct amdgpu_mman		mman; -	struct amdgpu_gem		gem;  	struct amdgpu_vram_scratch	vram_scratch;  	struct amdgpu_wb		wb;  	atomic64_t			vram_usage;  | 
