drm/amdgpu: use begin/end_use for UVD power/clock gating
authorChristian König <christian.koenig@amd.com>
Wed, 20 Jul 2016 12:11:26 +0000 (14:11 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Jul 2016 18:37:02 +0000 (14:37 -0400)
commitc4120d55ffa44746584a8a1e5b00cb7eafc006ff
treedec6c56127a8eb837f22f4bd76d62d70cade570e
parentf06505b8d27119202d76aeb1b80b2ca352c9567e
drm/amdgpu: use begin/end_use for UVD power/clock gating

This fixes turning power and clock on when it is actually needed.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h
drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c
drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c