Remove glibc < 2.4 compat code for sched_setaffinity
[urcu.git] / src / urcu-call-rcu-impl.h
index 18fd65a0ec45b04de012dff83838f260cbe07bcb..7e35651b6990c70e7a67f2df518644ed4daabe3a 100644 (file)
@@ -215,11 +215,8 @@ int set_thread_cpu_affinity(struct call_rcu_data *crdp)
 
        CPU_ZERO(&mask);
        CPU_SET(crdp->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
This page took 0.022303 seconds and 4 git commands to generate.