Add freebsd support for getcpu (use cpu nr 0)
[lttng-ust.git] / liblttng-ust / compat.h
index 803cc12db912314192b9c07e62a7918a37e8dac6..2690a7607ded20571f96cb79a417c9c3be0cb0e8 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-/*
- * sched_getcpu.
- */
-#ifdef __linux__
-
-#ifdef __UCLIBC__
-#include <sys/syscall.h>
-#define __getcpu(cpu, node, cache)     syscall(__NR_getcpu, cpu, node, cache)
-static inline
-int sched_getcpu(void)
-{
-       int c, s;
-
-       s = __getcpu(&c, NULL, NULL);
-       return (s == -1) ? s : c;
-}
-#endif /* __UCLIBC__ */
-
-#else
-#error "Please add support for your OS into liblttng-ust/compat.h."
-#endif
-
 /*
  * lttng_ust_getprocname.
  */
This page took 0.022362 seconds and 4 git commands to generate.