drm/amd/powerplay: add interface to get clock by type with latency for display (v2)
authorHuang Rui <ray.huang@amd.com>
Mon, 14 Jan 2019 03:55:45 +0000 (11:55 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:03:58 +0000 (15:03 -0500)
commite5e4e22391c2a7e792964aeb3278eecfd2a7638b
tree505429253b8aa83865c66cb7b1adef8eaaaac8a8
parent6ec826846e440494247ce81ef97037927bba191f
drm/amd/powerplay: add interface to get clock by type with latency for display (v2)

This patch adds get clock by type with latency, display will use it to get
current clocks with latency.

v2: fix the missed mutex lock before return.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/vega20_ppt.c