summaryrefslogtreecommitdiff
path: root/lib/sw_sync.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-12-17 12:27:14 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-12-17 15:03:41 +0000
commit20fffe7e4209220c63ec45e9b459224833831989 (patch)
tree1693532e9b819057d03a6f606130b41d7feb857e /lib/sw_sync.h
parent471ce7663d57ba7d2135ad9eb9e68f571c698626 (diff)
lib/sw_sync: Bring sync_wait() API into line
igt likes to return kernel-esque negative errno where we can, and indicate that we expect to operate on a sync_fence, otherwise it is merely a grandiose poll(). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/sw_sync.h')
-rw-r--r--lib/sw_sync.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sw_sync.h b/lib/sw_sync.h
index 82af3378..abcdc523 100644
--- a/lib/sw_sync.h
+++ b/lib/sw_sync.h
@@ -36,7 +36,7 @@ int __sw_sync_fence_create(int fd, uint32_t seqno);
int sw_sync_fence_create(int fd, uint32_t seqno);
void sw_sync_timeline_inc(int fd, uint32_t count);
int sync_merge(int fd1, int fd2);
-int sync_wait(int fence, int timeout);
+int sync_fence_wait(int fence, int timeout);
int sync_fence_count(int fd);
int sync_fence_count_status(int fd, int status);
void igt_require_sw_sync(void);