diff options
author | Kevin Wang <kevin1.wang@amd.com> | 2021-02-03 12:20:51 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-02-09 23:28:42 +0300 |
commit | de4b7cd8cb87c12559e0545d9c9c631cb2e8ee6f (patch) | |
tree | a90d31b65d1f59c412cec876cbcec69d0fb129d8 /drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h | |
parent | 1001f2a1f33dfe88bc7581d0177d01e9d299999c (diff) | |
download | linux-de4b7cd8cb87c12559e0545d9c9c631cb2e8ee6f.tar.xz |
drm/amd/pm/swsmu: unify the init soft gpu metrics function
the soft gpu metrics is not asic related data structure.
unify them to reduce duplicate code.
Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h')
-rw-r--r-- | drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h b/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h index 08ccf2d3257c..c69250185575 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h +++ b/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h @@ -97,5 +97,7 @@ int smu_cmn_get_metrics_table(struct smu_context *smu, void *metrics_table, bool bypass_cache); +void smu_cmn_init_soft_gpu_metrics(void *table, uint8_t frev, uint8_t crev); + #endif #endif |