X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Ftest_urcu_wfcq.c;h=3158d2d3d0a5fa89257edbd6722e3b8130ef778d;hb=69328034b804a0fc180c08f7ca6be1a4446bb105;hp=3141268053f3955685700def0cf0bfcbc1948b59;hpb=5e70d57262c7fc1f4e7fdfd288eeab7e14836079;p=urcu.git diff --git a/tests/test_urcu_wfcq.c b/tests/test_urcu_wfcq.c index 3141268..3158d2d 100644 --- a/tests/test_urcu_wfcq.c +++ b/tests/test_urcu_wfcq.c @@ -77,9 +77,9 @@ static unsigned long duration; /* read-side C.S. duration, in loops */ static unsigned long wdelay; -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(); } @@ -105,9 +105,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;