]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/pm: Remove unnecessary device state checks
authorLijo Lazar <lijo.lazar@amd.com>
Tue, 4 Feb 2025 06:32:41 +0000 (12:02 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:04:06 +0000 (21:04 -0500)
commita53cbd9e6f520a252ecce31f8b555203674a3413
tree9b91b7103910a15be8189e372e0d5d15366cb62a
parent543f6e7163d781eb989db0c32331e5d5ade68fdd
drm/amd/pm: Remove unnecessary device state checks

For amdgpu_get_pp_force_state, amdgpu_get_pp_cur_state already takes
care of device state check. In other cases, values are returned from
driver cached variables and are not dependent on device state.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Feifei Xu <feifei.xu@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c