drm/amdgpu/smu10: fix smu10_get_clock_by_type_with_voltage
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Jan 2020 17:42:57 +0000 (12:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Feb 2020 15:37:52 +0000 (10:37 -0500)
commit1064ad4aeef94f51ca230ac639a9e996fb7867a0
treeed94c414fe96bcc8c84e99c0f007dfc0b6e5a985
parent4d0a72b66065dd7e274bad6aa450196d42fd8f84
drm/amdgpu/smu10: fix smu10_get_clock_by_type_with_voltage

Cull out 0 clocks to avoid a warning in DC.

Bug: https://gitlab.freedesktop.org/drm/amd/issues/963
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c