Commit a35a10d9 authored by Evan Quan's avatar Evan Quan Committed by Alex Deucher

drm/amd/powerplay: better namings

And some minor changes as dropping unused parameter and label
internal used API as static.
Signed-off-by: default avatarEvan Quan <evan.quan@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 613e51df
...@@ -638,7 +638,7 @@ int smu_sys_set_pp_table(struct smu_context *smu, void *buf, size_t size) ...@@ -638,7 +638,7 @@ int smu_sys_set_pp_table(struct smu_context *smu, void *buf, size_t size)
return ret; return ret;
} }
int smu_feature_init_dpm(struct smu_context *smu) static int smu_get_driver_allowed_feature_mask(struct smu_context *smu)
{ {
struct smu_feature *feature = &smu->smu_feature; struct smu_feature *feature = &smu->smu_feature;
int ret = 0; int ret = 0;
...@@ -662,7 +662,6 @@ int smu_feature_init_dpm(struct smu_context *smu) ...@@ -662,7 +662,6 @@ int smu_feature_init_dpm(struct smu_context *smu)
return ret; return ret;
} }
int smu_feature_is_enabled(struct smu_context *smu, enum smu_feature_mask mask) int smu_feature_is_enabled(struct smu_context *smu, enum smu_feature_mask mask)
{ {
struct smu_feature *feature = &smu->smu_feature; struct smu_feature *feature = &smu->smu_feature;
...@@ -1115,8 +1114,7 @@ static int smu_sw_fini(void *handle) ...@@ -1115,8 +1114,7 @@ static int smu_sw_fini(void *handle)
return 0; return 0;
} }
static int smu_smc_table_hw_init(struct smu_context *smu, static int smu_smc_hw_setup(struct smu_context *smu)
bool initialize)
{ {
struct amdgpu_device *adev = smu->adev; struct amdgpu_device *adev = smu->adev;
int ret; int ret;
...@@ -1287,11 +1285,11 @@ static int smu_hw_init(void *handle) ...@@ -1287,11 +1285,11 @@ static int smu_hw_init(void *handle)
if (ret) if (ret)
return ret; return ret;
ret = smu_feature_init_dpm(smu); ret = smu_get_driver_allowed_feature_mask(smu);
if (ret) if (ret)
goto failed; goto failed;
ret = smu_smc_table_hw_init(smu, true); ret = smu_smc_hw_setup(smu);
if (ret) if (ret)
goto failed; goto failed;
...@@ -1487,7 +1485,7 @@ static int smu_resume(void *handle) ...@@ -1487,7 +1485,7 @@ static int smu_resume(void *handle)
goto failed; goto failed;
} }
ret = smu_smc_table_hw_init(smu, false); ret = smu_smc_hw_setup(smu);
if (ret) if (ret)
goto failed; goto failed;
......
...@@ -654,8 +654,6 @@ extern const struct amd_ip_funcs smu_ip_funcs; ...@@ -654,8 +654,6 @@ extern const struct amd_ip_funcs smu_ip_funcs;
extern const struct amdgpu_ip_block_version smu_v11_0_ip_block; extern const struct amdgpu_ip_block_version smu_v11_0_ip_block;
extern const struct amdgpu_ip_block_version smu_v12_0_ip_block; extern const struct amdgpu_ip_block_version smu_v12_0_ip_block;
extern int smu_feature_init_dpm(struct smu_context *smu);
extern int smu_feature_is_enabled(struct smu_context *smu, extern int smu_feature_is_enabled(struct smu_context *smu,
enum smu_feature_mask mask); enum smu_feature_mask mask);
extern int smu_feature_set_enabled(struct smu_context *smu, extern int smu_feature_set_enabled(struct smu_context *smu,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment