From: Mathieu Desnoyers Date: Thu, 12 Feb 2009 21:53:23 +0000 (-0500) Subject: Add missing cpu_relax in loop X-Git-Tag: v0.1~283 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3b55dbf4ce37054fa097a827a0e4ab322cf18ca0;p=userspace-rcu.git Add missing cpu_relax in loop Signed-off-by: Mathieu Desnoyers --- 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(); } } }