aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2018-03-05 03:07:22 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-03-07 16:10:09 -0500
commit807f93ac6a1d37498fcd8f6af28f1e5f569ad8e4 (patch)
tree8c4c9885b6a150b9b1c183408a78922357b93fdb /drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
parentcdd02dda4ff94b8f86c2c478cce7218e4613dc56 (diff)
drm/amd/pp: Remove cgs wrapper function for temperature update
Reviewed-by: Alex Deucher <alexdeucher@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
index f37482c76e20..76f4758ead3e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
@@ -905,18 +905,6 @@ static int amdgpu_cgs_notify_dpm_enabled(struct cgs_device *cgs_device, bool ena
905 return 0; 905 return 0;
906} 906}
907 907
908static int amdgpu_cgs_set_temperature_range(struct cgs_device *cgs_device,
909 int min_temperature,
910 int max_temperature)
911{
912 CGS_FUNC_ADEV;
913
914 adev->pm.dpm.thermal.min_temp = min_temperature;
915 adev->pm.dpm.thermal.max_temp = max_temperature;
916
917 return 0;
918}
919
920static const struct cgs_ops amdgpu_cgs_ops = { 908static const struct cgs_ops amdgpu_cgs_ops = {
921 .alloc_gpu_mem = amdgpu_cgs_alloc_gpu_mem, 909 .alloc_gpu_mem = amdgpu_cgs_alloc_gpu_mem,
922 .free_gpu_mem = amdgpu_cgs_free_gpu_mem, 910 .free_gpu_mem = amdgpu_cgs_free_gpu_mem,
@@ -941,7 +929,6 @@ static const struct cgs_ops amdgpu_cgs_ops = {
941 .is_virtualization_enabled = amdgpu_cgs_is_virtualization_enabled, 929 .is_virtualization_enabled = amdgpu_cgs_is_virtualization_enabled,
942 .enter_safe_mode = amdgpu_cgs_enter_safe_mode, 930 .enter_safe_mode = amdgpu_cgs_enter_safe_mode,
943 .lock_grbm_idx = amdgpu_cgs_lock_grbm_idx, 931 .lock_grbm_idx = amdgpu_cgs_lock_grbm_idx,
944 .set_temperature_range = amdgpu_cgs_set_temperature_range,
945}; 932};
946 933
947static const struct cgs_os_ops amdgpu_cgs_os_ops = { 934static const struct cgs_os_ops amdgpu_cgs_os_ops = {