Remove glibc < 2.4 compat code for sched_setaffinity
[urcu.git] / tests / common / api.h
index 35a8037e1f3d7efdcd6398b9406ce36989dfdfde..5ca045c66cab375e75ce2f8747c860ade6038ff2 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <urcu/compiler.h>
 #include <urcu/arch.h>
-#include "cpuset.h"
 
 /*
  * Machine parameters.
@@ -236,11 +235,7 @@ static void run_on(int cpu)
 
        CPU_ZERO(&mask);
        CPU_SET(cpu, &mask);
-#if SCHED_SETAFFINITY_ARGS == 2
-       sched_setaffinity(0, &mask);
-#else
        sched_setaffinity(0, sizeof(mask), &mask);
-#endif
 #endif /* HAVE_SCHED_SETAFFINITY */
 }
 
This page took 0.022808 seconds and 4 git commands to generate.