From 3b55dbf4ce37054fa097a827a0e4ab322cf18ca0 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 12 Feb 2009 16:53:23 -0500 Subject: [PATCH] Add missing cpu_relax in loop Signed-off-by: Mathieu Desnoyers --- urcu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/urcu.c b/urcu.c index 8cbdef9..b04b121 100644 --- a/urcu.c +++ b/urcu.c @@ -159,6 +159,8 @@ void wait_for_quiescent_state(void) if (wait_loops++ == KICK_READER_LOOPS) { force_mb_single_thread(index->tid); wait_loops = 0; + } else { + cpu_relax(); } } } -- 2.34.1