drm/amdgpu: move amdgpu_need_backup to amdgpu_object.c
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Dec 2017 21:45:02 +0000 (16:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Dec 2017 16:00:03 +0000 (11:00 -0500)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

index 04e5498929c3ef68b84ced5363b43a000d9ab588..91b4fda42873e840adcfb4693cce9ae2db892e97 100644 (file)
@@ -1889,7 +1889,6 @@ amdgpu_get_sdma_instance(struct amdgpu_ring *ring)
 /* Common functions */
 int amdgpu_device_gpu_recover(struct amdgpu_device *adev,
                              struct amdgpu_job* job, bool force);
-bool amdgpu_need_backup(struct amdgpu_device *adev);
 void amdgpu_device_pci_config_reset(struct amdgpu_device *adev);
 bool amdgpu_device_need_post(struct amdgpu_device *adev);
 void amdgpu_update_display_priority(struct amdgpu_device *adev);
index cfeceab292249bfc63275423a11d33f08ccfcf2f..f80081ecb02c5f718ed280500467f70febbae3f6 100644 (file)
@@ -2425,14 +2425,6 @@ static int amdgpu_device_ip_post_soft_reset(struct amdgpu_device *adev)
        return 0;
 }
 
-bool amdgpu_need_backup(struct amdgpu_device *adev)
-{
-       if (adev->flags & AMD_IS_APU)
-               return false;
-
-       return amdgpu_gpu_recovery;
-}
-
 static int amdgpu_device_recover_vram_from_shadow(struct amdgpu_device *adev,
                                                  struct amdgpu_ring *ring,
                                                  struct amdgpu_bo *bo,
index 86340cfa6be7e06eebe90687d269727b0e139f6d..4feee9927bce65b2bb478a48cac66e341ae5aad0 100644 (file)
 #include "amdgpu.h"
 #include "amdgpu_trace.h"
 
+static bool amdgpu_need_backup(struct amdgpu_device *adev)
+{
+       if (adev->flags & AMD_IS_APU)
+               return false;
+
+       return amdgpu_gpu_recovery;
+}
+
 static void amdgpu_ttm_bo_destroy(struct ttm_buffer_object *tbo)
 {
        struct amdgpu_device *adev = amdgpu_ttm_adev(tbo->bdev);