drm/amd/powerplay: correct arcturus current clock level calculation
authorEvan Quan <evan.quan@amd.com>
Tue, 23 Jul 2019 12:28:14 +0000 (20:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jul 2019 04:48:35 +0000 (23:48 -0500)
commit1f23cadbe0775559b3152a4f1fcb566d8cf6f571
tree5468a4ada6ab7b1f2c0bbe706e0e17b2a92f6b04
parent60d435b73db607df560f3df04fe5f4ba96e37116
drm/amd/powerplay: correct arcturus current clock level calculation

There may be 1Mhz delta between target and actual frequency. That
should be taken into consideration for current level check.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/arcturus_ppt.c