diff options
author | Evan Quan <evan.quan@amd.com> | 2021-03-25 13:01:09 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-04-09 16:46:46 -0400 |
commit | d2b0b4832b90fabab282e85f2a6eff085af95a98 (patch) | |
tree | 208f9be920f543d107fd8b4deb8fa515fec905da /drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | |
parent | d34a1ea94aef6fd695283a9231191fd6f23f70bd (diff) | |
download | linux-stable-d2b0b4832b90fabab282e85f2a6eff085af95a98.tar.gz linux-stable-d2b0b4832b90fabab282e85f2a6eff085af95a98.tar.bz2 linux-stable-d2b0b4832b90fabab282e85f2a6eff085af95a98.zip |
drm/amd/pm: unify the interface for power gating
No need to have special handling for swSMU supported ASICs.
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>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c')
-rw-r--r-- | drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c index f1891ff1ddd7..6e0f8a02bb3c 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c @@ -268,9 +268,9 @@ static int smu_dpm_set_jpeg_enable(struct smu_context *smu, * Under this case, the smu->mutex lock protection is already enforced on * the parent API smu_force_performance_level of the call path. */ -int smu_dpm_set_power_gate(void *handle, - uint32_t block_type, - bool gate) +static int smu_dpm_set_power_gate(void *handle, + uint32_t block_type, + bool gate) { struct smu_context *smu = handle; int ret = 0; |