mirror_ubuntu-kernels/drivers/gpu/drm/amd
YiPeng Chai a6ad27cec5 drm/amd/pm: Remove redundant check condition
V3:
[Why]:
  Since ASICs using smu v13_0_2 have called smu
.suspend before calling amdgpu_pm_sysfs_fini,
pm.dpm_enabled was already set to 0 when smu
.suspend was called. This makes it impossible
to delete all pm sys nodes.

[How]:
  Since all functions in amdgpu_pm_sysfs_fini
have their own condition checks, so the first
conditional check in amdgpu_pm_sysfs_fini can
be removed.

Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-09-19 15:17:58 -04:00
..
acp
amdgpu drm/amdgpu: Fixed psp fence and memory issues when removing amdgpu device 2022-09-19 15:17:47 -04:00
amdkfd drm/amdkfd: Fix spelling mistake "detroyed" -> "destroyed" 2022-09-19 15:07:46 -04:00
display drm/amd/display: 3.2.204 2022-09-19 15:17:12 -04:00
include drm/amd/pm:add new gpu_metrics_v2_3 to acquire average temperature info 2022-09-14 12:38:41 -04:00
pm drm/amd/pm: Remove redundant check condition 2022-09-19 15:17:58 -04:00