drm/amdgpu/pm: move additional logic into amdgpu_dpm_force_performance_level
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Jan 2022 23:14:22 +0000 (18:14 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jan 2022 22:51:15 +0000 (17:51 -0500)
commit54c73b51df2958f564b144ce86f15a85e227db90
treef867926ee75725095dd779b8b5ce45449ba528f4
parentbcf19fdd507fb679bb6e1b8a119961f32b6cbb95
drm/amdgpu/pm: move additional logic into amdgpu_dpm_force_performance_level

This is part of the forced performance level.  Move it from
the sysfs handler into amdgpu_dpm_force_performance_level.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_dpm.c
drivers/gpu/drm/amd/pm/amdgpu_pm.c