projects
/
userspace-rcu.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
[userspace-rcu.git]
/
src
/
workqueue.c
diff --git
a/src/workqueue.c
b/src/workqueue.c
index 59eb21d534e9446df3f477795062e9dba4ec2abc..1e045fb7d4c40cf9d271878b8638d39a43b5fa49 100644
(file)
--- a/
src/workqueue.c
+++ b/
src/workqueue.c
@@
-107,11
+107,8
@@
static int set_thread_cpu_affinity(struct urcu_workqueue *workqueue)
CPU_ZERO(&mask);
CPU_SET(workqueue->cpu_affinity, &mask);
CPU_ZERO(&mask);
CPU_SET(workqueue->cpu_affinity, &mask);
-#if SCHED_SETAFFINITY_ARGS == 2
- ret = sched_setaffinity(0, &mask);
-#else
ret = sched_setaffinity(0, sizeof(mask), &mask);
ret = sched_setaffinity(0, sizeof(mask), &mask);
-#endif
+
/*
* EINVAL is fine: can be caused by hotunplugged CPUs, or by
* cpuset(7). This is why we should always retry if we detect
/*
* EINVAL is fine: can be caused by hotunplugged CPUs, or by
* cpuset(7). This is why we should always retry if we detect
This page took
0.022447 seconds
and
4
git commands to generate.