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.7.7~5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8a977803b225cc69bd71993e9eceb5d210ad0218;p=userspace-rcu.git 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