Add missing cpu_relax in loop
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Thu, 12 Feb 2009 21:53:23 +0000 (16:53 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Thu, 12 Feb 2009 21:53:23 +0000 (16:53 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu.c

diff --git a/urcu.c b/urcu.c
index 8cbdef9e66b386c0b6ac175b2029e194bfe3b43f..b04b121344c5e0d425c0d2cfaee34a662ecb8cbf 100644 (file)
--- 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();
                        }
                }
        }
This page took 0.025677 seconds and 4 git commands to generate.