]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/swsmu/renoir: simplify sensor handling (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Dec 2020 17:29:31 +0000 (12:29 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Dec 2020 22:37:18 +0000 (17:37 -0500)
commit5fc540c91186a32dc891850f3e41221dc0a12bae
treeb12a538e51ac55522eabb1652b6aa312ad4922e7
parentab21c765e5b9ab91736e64b232c06d948e30103a
drm/amdgpu/swsmu/renoir: simplify sensor handling (v2)

Just query the metrics table directly rather than going through
an extra level of functions.

v2: use proper enum

Reviewed-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c