X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Ftest_urcu_bp.c;h=7f20a6a060233c4795ae5ed01d0a9aef4891c748;hb=85b577030e0dd244ed2d42aa5196a088e1e64dbb;hp=239e843cfaac9d22006fc3aca7be5760cabdc11a;hpb=6982d6d71aeed16d2d929bd0ed221e8f444b706e;p=urcu.git diff --git a/tests/test_urcu_bp.c b/tests/test_urcu_bp.c index 239e843..7f20a6a 100644 --- a/tests/test_urcu_bp.c +++ b/tests/test_urcu_bp.c @@ -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;