diff options
author | Evan Quan <evan.quan@amd.com> | 2021-11-17 10:46:24 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-01-14 17:51:14 -0500 |
commit | 6ddbd37f10749830e0a6ddf839ca4313a007d3f5 (patch) | |
tree | 9afa0df93554c0da5a3710eaf0702adcc7df36e3 /drivers/gpu/drm/amd/include/kgd_pp_interface.h | |
parent | d698a2c4859de2d4d42d2f3c3806d6dce821d663 (diff) | |
download | linux-6ddbd37f10749830e0a6ddf839ca4313a007d3f5.tar.gz linux-6ddbd37f10749830e0a6ddf839ca4313a007d3f5.tar.bz2 linux-6ddbd37f10749830e0a6ddf839ca4313a007d3f5.zip |
drm/amd/pm: optimize the amdgpu_pm_compute_clocks() implementations
Drop cross callings and multi-function APIs. Also avoid exposing
internal implementations details.
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/include/kgd_pp_interface.h')
-rw-r--r-- | drivers/gpu/drm/amd/include/kgd_pp_interface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/include/kgd_pp_interface.h b/drivers/gpu/drm/amd/include/kgd_pp_interface.h index cdf724dcf832..7919e96e772b 100644 --- a/drivers/gpu/drm/amd/include/kgd_pp_interface.h +++ b/drivers/gpu/drm/amd/include/kgd_pp_interface.h @@ -404,7 +404,7 @@ struct amd_pm_funcs { int (*get_dpm_clock_table)(void *handle, struct dpm_clocks *clock_table); int (*get_smu_prv_buf_details)(void *handle, void **addr, size_t *size); - int (*change_power_state)(void *handle); + void (*pm_compute_clocks)(void *handle); }; struct metrics_table_header { |