From: Mathieu Desnoyers Date: Fri, 22 Feb 2013 16:34:25 +0000 (-0500) Subject: Fix: tests/api.h use cpuset.h X-Git-Tag: v0.8.0~102 X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=108a92e5b97ee91b2b902dba2dd2e78aab42f420 Fix: tests/api.h use cpuset.h Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/api.h b/tests/api.h index 6d71900..2b87656 100644 --- a/tests/api.h +++ b/tests/api.h @@ -29,6 +29,7 @@ #include #include +#include "cpuset.h" /* * Machine parameters. @@ -65,7 +66,6 @@ #include #include #include -#include #include /* #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