drm/amdgpu: use begin/end_use for VCE power/clock gating
authorChristian König <christian.koenig@amd.com>
Wed, 20 Jul 2016 14:53:36 +0000 (16:53 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Jul 2016 18:37:03 +0000 (14:37 -0400)
commitebff485e9314f8c53f6b22eba0dfbec7228ab268
treebfe32720f5ef21855af1db8274142491716959ba
parentc4120d55ffa44746584a8a1e5b00cb7eafc006ff
drm/amdgpu: use begin/end_use for VCE 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.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h
drivers/gpu/drm/amd/amdgpu/vce_v2_0.c
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c