projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove glibc < 2.4 compat code for sched_setaffinity
[urcu.git]
/
tests
/
common
/
api.h
diff --git
a/tests/common/api.h
b/tests/common/api.h
index 35a8037e1f3d7efdcd6398b9406ce36989dfdfde..5ca045c66cab375e75ce2f8747c860ade6038ff2 100644
(file)
--- a/
tests/common/api.h
+++ b/
tests/common/api.h
@@
-26,7
+26,6
@@
#include <urcu/compiler.h>
#include <urcu/arch.h>
#include <urcu/compiler.h>
#include <urcu/arch.h>
-#include "cpuset.h"
/*
* Machine parameters.
/*
* Machine parameters.
@@
-236,11
+235,7
@@
static void run_on(int cpu)
CPU_ZERO(&mask);
CPU_SET(cpu, &mask);
CPU_ZERO(&mask);
CPU_SET(cpu, &mask);
-#if SCHED_SETAFFINITY_ARGS == 2
- sched_setaffinity(0, &mask);
-#else
sched_setaffinity(0, sizeof(mask), &mask);
sched_setaffinity(0, sizeof(mask), &mask);
-#endif
#endif /* HAVE_SCHED_SETAFFINITY */
}
#endif /* HAVE_SCHED_SETAFFINITY */
}
This page took
0.023146 seconds
and
4
git commands to generate.