Fix: tests/api.h use cpuset.h
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 22 Feb 2013 16:34:25 +0000 (11:34 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 22 Feb 2013 16:34:25 +0000 (11:34 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/api.h

index 6d7190086b1babef4610fd6ca349a1b096c78687..2b876565c991351a86f3c61748addc1d20b1a68a 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <urcu/compiler.h>
 #include <urcu/arch.h>
+#include "cpuset.h"
 
 /*
  * Machine parameters.
@@ -65,7 +66,6 @@
 #include <limits.h>
 #include <sys/types.h>
 #include <pthread.h>
-#include <sched.h>
 #include <sys/param.h>
 /* #include "atomic.h" */
 
@@ -231,12 +231,6 @@ static void wait_all_threads(void)
        }
 }
 
-#ifndef HAVE_CPU_SET_T
-typedef unsigned long cpu_set_t;
-# define CPU_ZERO(cpuset) do { *(cpuset) = 0; } while(0)
-# define CPU_SET(cpu, cpuset) do { *(cpuset) |= (1UL << (cpu)); } while(0)
-#endif
-
 static void run_on(int cpu)
 {
 #if HAVE_SCHED_SETAFFINITY
This page took 0.025593 seconds and 4 git commands to generate.