X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest_urcu_gc.c;h=c452afbd1f2e92a7186a07fcb4ef01dba1310671;hb=2953b501ab1dcf908d07de9b414a08397519f5b6;hp=777e04bb3f3d9bbced330d9bc0d6411d0e8978db;hpb=6ff854acfa013195bdb71dddc654ec76a4c296c9;p=urcu.git diff --git a/tests/test_urcu_gc.c b/tests/test_urcu_gc.c index 777e04b..c452afb 100644 --- a/tests/test_urcu_gc.c +++ b/tests/test_urcu_gc.c @@ -1,7 +1,7 @@ /* * test_urcu_gc.c * - * Userspace RCU library - test program (with baatch reclamation) + * Userspace RCU library - test program (with batch reclamation) * * Copyright February 2009 - Mathieu Desnoyers * @@ -31,11 +31,11 @@ #include #include #include -#include #include #include #include +#include "cpuset.h" #ifdef __linux__ #include @@ -113,12 +113,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