aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2017-12-15 16:45:02 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-12-18 11:00:03 -0500
commit6b8f4ee56fb27ac36fb3dbec91b5eb04beb90287 (patch)
tree9be8107381fea0a81d0dfc04ef5b8ea3f5d0add5 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parent5f152b5e69a5392181b0a84bd55fe17a417364ac (diff)
drm/amdgpu: move amdgpu_need_backup to amdgpu_object.c
It's the only place it's used. Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index 86340cfa6be7..4feee9927bce 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -37,6 +37,14 @@
37#include "amdgpu.h" 37#include "amdgpu.h"
38#include "amdgpu_trace.h" 38#include "amdgpu_trace.h"
39 39
40static bool amdgpu_need_backup(struct amdgpu_device *adev)
41{
42 if (adev->flags & AMD_IS_APU)
43 return false;
44
45 return amdgpu_gpu_recovery;
46}
47
40static void amdgpu_ttm_bo_destroy(struct ttm_buffer_object *tbo) 48static void amdgpu_ttm_bo_destroy(struct ttm_buffer_object *tbo)
41{ 49{
42 struct amdgpu_device *adev = amdgpu_ttm_adev(tbo->bdev); 50 struct amdgpu_device *adev = amdgpu_ttm_adev(tbo->bdev);