X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=src%2Fworkqueue.c;fp=src%2Fworkqueue.c;h=1e045fb7d4c40cf9d271878b8638d39a43b5fa49;hp=59eb21d534e9446df3f477795062e9dba4ec2abc;hb=0614a2e61ccbf150cc51d4fd3073b285983417c5;hpb=1136f4540f901b884c76fe011a468f2257d30a0f diff --git a/src/workqueue.c b/src/workqueue.c index 59eb21d..1e045fb 100644 --- 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); -#if SCHED_SETAFFINITY_ARGS == 2 - ret = sched_setaffinity(0, &mask); -#else 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