X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Ftest_urcu_defer.c;h=1fbb15461be45d96fc9626634fb4afc030b66524;hb=95bc7fb90c36ee10dc171a23e8783eff30072b7b;hp=cd9780b6f02f0b44d6f08e5ce5961590ebcde04a;hpb=bd252a04bbbb163aa4d8864b1e1e5a3a4d9d0892;p=urcu.git diff --git a/tests/test_urcu_defer.c b/tests/test_urcu_defer.c index cd9780b..1fbb154 100644 --- a/tests/test_urcu_defer.c +++ b/tests/test_urcu_defer.c @@ -85,9 +85,9 @@ static unsigned long rduration; /* write-side C.S. duration, in loops */ static unsigned long wduration; -static inline void loop_sleep(unsigned long l) +static inline void loop_sleep(unsigned long loops) { - while(l-- != 0) + while (loops-- != 0) caa_cpu_relax(); } @@ -113,9 +113,10 @@ typedef unsigned long cpu_set_t; static void set_affinity(void) { +#if HAVE_SCHED_SETAFFINITY cpu_set_t mask; - int cpu; - int ret; + int cpu, ret; +#endif /* HAVE_SCHED_SETAFFINITY */ if (!use_affinity) return;