drm/amd/pm: correct the way for retrieving current uclk frequency
authorEvan Quan <evan.quan@amd.com>
Tue, 10 May 2022 08:08:50 +0000 (16:08 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Jun 2022 20:43:36 +0000 (16:43 -0400)
commitd5fe83d26dae59c5b52105075e8950dea8ce7c19
tree96ebc97d27c86400b12774cad45643edd53443fc
parentf74e78ca90bd21b47746b90c439709007681f44c
drm/amd/pm: correct the way for retrieving current uclk frequency

There is some problem with average frequency reading. Thus, we
switch to the target frequency reading instead.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c