projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rculfhash test: fix trivial memleak and return node leak and errors
[userspace-rcu.git]
/
tests
/
test_urcu.c
diff --git
a/tests/test_urcu.c
b/tests/test_urcu.c
index 1b1b94b5bfcebc77c3fec5481e528858d62ed4f9..eed3dfbdcdc295c880e626eff8f5802a30356dda 100644
(file)
--- a/
tests/test_urcu.c
+++ b/
tests/test_urcu.c
@@
-84,9
+84,9
@@
static unsigned long rduration;
/* 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();
}
@@
-112,9
+112,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.025375 seconds
and
4
git commands to generate.