projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: x86 and s390 uatomic: __hp() macro warning with gcc 11
[userspace-rcu.git]
/
tests
/
benchmark
/
test_urcu_hash.c
diff --git
a/tests/benchmark/test_urcu_hash.c
b/tests/benchmark/test_urcu_hash.c
index 297e0c0913721fd0add3e81a7052b5d45565d7b4..a8a79e3fcb45bf9b8c73060ee0ce98c615fb9cf5 100644
(file)
--- a/
tests/benchmark/test_urcu_hash.c
+++ b/
tests/benchmark/test_urcu_hash.c
@@
-140,7
+140,7
@@
static pthread_mutex_t rcu_copy_mutex = PTHREAD_MUTEX_INITIALIZER;
void set_affinity(void)
{
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 */
@@
-148,7
+148,7
@@
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.023847 seconds
and
4
git commands to generate.