OSDN Git Service

drm/amd/pm: unified lock protections in amdgpu_dpm.c
authorEvan Quan <evan.quan@amd.com>
Tue, 16 Nov 2021 06:30:20 +0000 (14:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jan 2022 22:51:15 +0000 (17:51 -0500)
commit3712e7a494596b26861f4dc9b81676d1d0272eaf
treef6ed89d3197191463bc5f878e084b994c73af944
parent61d7d0d5adc705f833d8a5dbb596253842486220
drm/amd/pm: unified lock protections in amdgpu_dpm.c

As the only entry point, it's now safe and reasonable to
enforce the lock protections in amdgpu_dpm.c. And with
this, we can drop other internal used power locks.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_dpm.c
drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c