drm/amdgpu: save list length when fence is signaled
authorChunming Zhou <David1.Zhou@amd.com>
Fri, 11 Aug 2017 01:34:33 +0000 (09:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Aug 2017 19:46:03 +0000 (15:46 -0400)
commit5b7f8404b217613918a0ebe40ea5511990ab2e35
treeb6ab0f8a498711e710e1556129075891fa0cec6c
parent3c848bb38aca1f7fd23edeb867b89d714a2e6ce2
drm/amdgpu: save list length when fence is signaled

update the list first to avoid redundant checks.

Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c