projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lfstack: implement empty, pop_all and iterators, document API
[urcu.git]
/
tests
/
test_urcu_qsbr_gc.c
diff --git
a/tests/test_urcu_qsbr_gc.c
b/tests/test_urcu_qsbr_gc.c
index 561a475d30c178c907ec5a9402060b9b8db685a2..f8cf784ccd2a455c1afce76ec7dc7449cb671412 100644
(file)
--- a/
tests/test_urcu_qsbr_gc.c
+++ b/
tests/test_urcu_qsbr_gc.c
@@
-89,9
+89,9
@@
static struct reclaim_queue *pending_reclaims;
/* write-side C.S. duration, in loops */
static unsigned long wduration;
/* 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 l
oops
)
{
{
- while
(l
-- != 0)
+ while
(loops
-- != 0)
caa_cpu_relax();
}
caa_cpu_relax();
}
@@
-117,9
+117,10
@@
typedef unsigned long cpu_set_t;
static void set_affinity(void)
{
static void set_affinity(void)
{
+#if HAVE_SCHED_SETAFFINITY
cpu_set_t mask;
cpu_set_t mask;
- int cpu;
- int ret;
+ int cpu
, ret
;
+#endif /* HAVE_SCHED_SETAFFINITY */
if (!use_affinity)
return;
if (!use_affinity)
return;
This page took
0.024604 seconds
and
4
git commands to generate.