|
@@ -326,25 +326,6 @@ struct fence *amdgpu_sync_get_fence(struct amdgpu_sync *sync)
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
-int amdgpu_sync_wait(struct amdgpu_sync *sync)
|
|
|
-{
|
|
|
- struct amdgpu_sync_entry *e;
|
|
|
- struct hlist_node *tmp;
|
|
|
- int i, r;
|
|
|
-
|
|
|
- hash_for_each_safe(sync->fences, i, tmp, e, node) {
|
|
|
- r = fence_wait(e->fence, false);
|
|
|
- if (r)
|
|
|
- return r;
|
|
|
-
|
|
|
- hash_del(&e->node);
|
|
|
- fence_put(e->fence);
|
|
|
- kmem_cache_free(amdgpu_sync_slab, e);
|
|
|
- }
|
|
|
-
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* amdgpu_sync_free - free the sync object
|
|
|
*
|