drm/amdgpu: modify amdgpu_fence_wait_any() to amdgpu_fence_wait_multiple()
authorJunwei Zhang <Jerry.Zhang@amd.com>
Wed, 19 Aug 2015 08:24:19 +0000 (16:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Aug 2015 14:38:28 +0000 (10:38 -0400)
commit1aa4051b7f5474cca6009c13868c59d78d06f983
treebad07ba0fe771f75d08d6785a3eb333acd3d2694
parent52293c67f1e7542a6dc61037d83c266e216bef27
drm/amdgpu: modify amdgpu_fence_wait_any() to amdgpu_fence_wait_multiple()

Rename the function and update the related code with this modified function.
Add the new parameter of bool wait_all.

If wait_all is true, it will return when all fences are signaled or timeout.
If wait_all is false, it will return when any fence is signaled or timeout.

Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c