X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Ftest_urcu_wfq.c;fp=tests%2Ftest_urcu_wfq.c;h=f26708baf3602816c7fae44a486c3f68ea352d7b;hp=b4138ea6fc4308fdbf01f1bc1dd4b76cd0e55e7c;hb=2953b501ab1dcf908d07de9b414a08397519f5b6;hpb=fe1f98621fe1cfafdf66c332a004e2a8c8397b2a diff --git a/tests/test_urcu_wfq.c b/tests/test_urcu_wfq.c index b4138ea..f26708b 100644 --- a/tests/test_urcu_wfq.c +++ b/tests/test_urcu_wfq.c @@ -34,11 +34,11 @@ #include #include #include -#include #include #include #include +#include "cpuset.h" #ifdef __linux__ #include @@ -101,12 +101,6 @@ static int use_affinity = 0; pthread_mutex_t affinity_mutex = PTHREAD_MUTEX_INITIALIZER; -#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 set_affinity(void) { #if HAVE_SCHED_SETAFFINITY