drm/amdgpu/smu: add metrics table lock
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Dec 2019 14:35:01 +0000 (09:35 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Dec 2019 21:09:13 +0000 (16:09 -0500)
commitfa7df7516e32807cfc5360f41de8c2cc34e00046
tree8b67c15fb3a4fb80590cb1698632539716f5b077
parentd012ea925d6110f2bd4a9b398f87ef1a76c649c5
drm/amdgpu/smu: add metrics table lock

This table is used for lots of things, add it's own lock.

Bug: https://gitlab.freedesktop.org/drm/amd/issues/900
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h