diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2017-09-04 16:25:48 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-18 23:30:31 -0400 |
commit | 1ab4720441ed6a918c06c4ddf882ef8bc50c8ef0 (patch) | |
tree | afd4fa643988471ef0e4b3a63ad2797b64a98a36 /drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | |
parent | 97bae49c44454549e7e22ef02020decafa099f04 (diff) | |
download | linux-1ab4720441ed6a918c06c4ddf882ef8bc50c8ef0.tar.gz |
drm/amd/powerplay: refine code for thermal control in powerplay
add function point start_thermal_controller in hwmgr,
delete thermal function table and related functions
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c index e397349ce1c9..4527c07bc679 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c @@ -114,8 +114,7 @@ int smum_early_init(struct pp_instance *handle) return 0; } -int smum_thermal_avfs_enable(struct pp_hwmgr *hwmgr, - void *input, void *output, void *storage, int result) +int smum_thermal_avfs_enable(struct pp_hwmgr *hwmgr) { if (NULL != hwmgr->smumgr->smumgr_funcs->thermal_avfs_enable) return hwmgr->smumgr->smumgr_funcs->thermal_avfs_enable(hwmgr); @@ -123,8 +122,7 @@ int smum_thermal_avfs_enable(struct pp_hwmgr *hwmgr, return 0; } -int smum_thermal_setup_fan_table(struct pp_hwmgr *hwmgr, - void *input, void *output, void *storage, int result) +int smum_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) { if (NULL != hwmgr->smumgr->smumgr_funcs->thermal_setup_fan_table) return hwmgr->smumgr->smumgr_funcs->thermal_setup_fan_table(hwmgr); |