From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Tvrtko Ursulin Date: Fri, 19 Nov 2021 12:59:41 +0000 Message-Id: <20211119125945.55056-2-tvrtko.ursulin@linux.intel.com> In-Reply-To: <20211119125945.55056-1-tvrtko.ursulin@linux.intel.com> References: <20211119125945.55056-1-tvrtko.ursulin@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [Intel-gfx] [PATCH i-g-t 2/6] igt/drm_read: Fix build warning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: igt-dev@lists.freedesktop.org Cc: Intel-gfx@lists.freedesktop.org List-ID: From: Tvrtko Ursulin .../tests/drm_read.c: In function ‘test_short_buffer_wakeup’: .../tests/drm_read.c:224:17: warning: ‘pthread_yield’ is deprecated: pthread_yield is deprecated, use sched_yield instead [-Wdeprecated-declarations] 224 | pthread_yield(); | ^~~~~~~~~~~~~ Signed-off-by: Tvrtko Ursulin Cc: Petri Latvala --- tests/drm_read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/drm_read.c b/tests/drm_read.c index 3186e6097187..4a966a23b550 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); -- 2.32.0