X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Ftest_rwlock.c;h=9c8f97e39cf2232be5f461a655102ba1c3feac07;hb=65fcc7e9957a1658327acd121c3d8c3b36f4a94e;hp=445ce958bb464a6383aa2cc8d11817e361341133;hpb=5481ddb381061bda64aebc039900d21cac6a6caf;p=urcu.git diff --git a/tests/test_rwlock.c b/tests/test_rwlock.c index 445ce95..9c8f97e 100644 --- a/tests/test_rwlock.c +++ b/tests/test_rwlock.c @@ -31,12 +31,15 @@ #include #include #include -#include #include #include #include +#ifdef __linux__ +#include +#endif + /* hardcoded number of CPUs */ #define NR_CPUS 16384 @@ -85,7 +88,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;