summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/drm_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/drm_read.c b/tests/drm_read.c
index 3186e609..4a966a23 100644
--- a/tests/drm_read.c
+++ b/tests/drm_read.c
@@ -221,7 +221,7 @@ static void test_short_buffer_wakeup(int in, enum pipe pipe)
pthread_mutex_unlock(&w.mutex);
/* Give each thread a chance to sleep in drm_read() */
- pthread_yield();
+ sched_yield();
/* One event should wake all threads as none consume */
generate_event(w.fd, pipe);