cleanup: all functions have declarations (-Wmissing-prototypes)
[urcu.git] / tests / common / api.h
index 35a8037e1f3d7efdcd6398b9406ce36989dfdfde..67c388e13465ff322b02dda79e35579a7ee12f7a 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <urcu/compiler.h>
 #include <urcu/arch.h>
-#include "cpuset.h"
 
 /*
  * Machine parameters.
@@ -236,11 +235,7 @@ static void run_on(int cpu)
 
        CPU_ZERO(&mask);
        CPU_SET(cpu, &mask);
-#if SCHED_SETAFFINITY_ARGS == 2
-       sched_setaffinity(0, &mask);
-#else
        sched_setaffinity(0, sizeof(mask), &mask);
-#endif
 #endif /* HAVE_SCHED_SETAFFINITY */
 }
 
@@ -248,6 +243,7 @@ static void run_on(int cpu)
  * timekeeping -- very crude -- should use MONOTONIC...
  */
 
+static inline
 long long get_microseconds(void)
 {
        struct timeval tv;
This page took 0.023676 seconds and 4 git commands to generate.