X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Ftest_urcu_bp.c;h=7f20a6a060233c4795ae5ed01d0a9aef4891c748;hp=79711541ee3e1fc52387ce7c8a62653a55ac6b9b;hb=06f22bdbb0c4c4d5db42a2e2dc35818aa61415be;hpb=a50a7b4333a5039f1471c0b7cfbfb3d6dc5379fb diff --git a/tests/test_urcu_bp.c b/tests/test_urcu_bp.c index 7971154..7f20a6a 100644 --- a/tests/test_urcu_bp.c +++ b/tests/test_urcu_bp.c @@ -3,7 +3,7 @@ * * Userspace RCU library - test program * - * Copyright February 2009 - Mathieu Desnoyers + * Copyright February 2009 - Mathieu Desnoyers * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -83,7 +83,7 @@ static unsigned long wduration; static inline void loop_sleep(unsigned long l) { while(l-- != 0) - cpu_relax(); + caa_cpu_relax(); } static int verbose_mode; @@ -231,7 +231,7 @@ void *thr_reader(void *_count) while (!test_go) { } - smp_mb(); + cmm_smp_mb(); for (;;) { rcu_read_lock(); @@ -269,7 +269,7 @@ void *thr_writer(void *_count) while (!test_go) { } - smp_mb(); + cmm_smp_mb(); for (;;) { new = test_array_alloc(); @@ -417,7 +417,7 @@ int main(int argc, char **argv) exit(1); } - smp_mb(); + cmm_smp_mb(); test_go = 1;