]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: Remove call to amdgpu_pm_compute_clocks
authorDavid Francis <David.Francis@amd.com>
Fri, 17 Aug 2018 18:24:26 +0000 (14:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Sep 2018 03:44:08 +0000 (22:44 -0500)
[Why]
The extraneous call to amdgpu_pm_compute_clocks is deprecated.

[How]
Remove it.

Signed-off-by: David Francis <David.Francis@amd.com>
Signed-off-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: David Francis <David.Francis@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c

index cfa907b119c7586213a0ea426bb377f7017572e7..6d16b4a0353d177cb8af3f8286e747754e4a11c3 100644 (file)
@@ -101,18 +101,10 @@ bool dm_pp_apply_display_requirements(
                        adev->pm.pm_display_cfg.displays[i].controller_id = dc_cfg->pipe_idx + 1;
                }
 
-               /* TODO: complete implementation of
-                * pp_display_configuration_change().
-                * Follow example of:
-                * PHM_StoreDALConfigurationData - powerplay\hwmgr\hardwaremanager.c
-                * PP_IRI_DisplayConfigurationChange - powerplay\eventmgr\iri.c */
                if (adev->powerplay.pp_funcs->display_configuration_change)
                        adev->powerplay.pp_funcs->display_configuration_change(
                                adev->powerplay.pp_handle,
                                &adev->pm.pm_display_cfg);
-
-               /* TODO: replace by a separate call to 'apply display cfg'? */
-               amdgpu_pm_compute_clocks(adev);
        }
 
        return true;