projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: HAVE_SCHED_SETAFFINITY is not defined
[userspace-rcu.git]
/
tests
/
benchmark
/
test_urcu_lfs_rcu.c
diff --git
a/tests/benchmark/test_urcu_lfs_rcu.c
b/tests/benchmark/test_urcu_lfs_rcu.c
index b8cb3354075b301b78aaa9a8946ce9f023113bd2..83a65f79d58793939d8ccb7eb9e7904fdc2b7e0f 100644
(file)
--- a/
tests/benchmark/test_urcu_lfs_rcu.c
+++ b/
tests/benchmark/test_urcu_lfs_rcu.c
@@
-83,7
+83,7
@@
pthread_mutex_t affinity_mutex = PTHREAD_MUTEX_INITIALIZER;
static void set_affinity(void)
{
static void set_affinity(void)
{
-#if HAVE_SCHED_SETAFFINITY
+#if
def
HAVE_SCHED_SETAFFINITY
cpu_set_t mask;
int cpu, ret;
#endif /* HAVE_SCHED_SETAFFINITY */
cpu_set_t mask;
int cpu, ret;
#endif /* HAVE_SCHED_SETAFFINITY */
@@
-91,7
+91,7
@@
static void set_affinity(void)
if (!use_affinity)
return;
if (!use_affinity)
return;
-#if HAVE_SCHED_SETAFFINITY
+#if
def
HAVE_SCHED_SETAFFINITY
ret = pthread_mutex_lock(&affinity_mutex);
if (ret) {
perror("Error in pthread mutex lock");
ret = pthread_mutex_lock(&affinity_mutex);
if (ret) {
perror("Error in pthread mutex lock");
This page took
0.023057 seconds
and
4
git commands to generate.