summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
98c2069)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
#include <urcu/compiler.h>
#include <urcu/system.h>
#include <urcu/arch.h>
#include <urcu/compiler.h>
#include <urcu/system.h>
#include <urcu/arch.h>
void lttng_ust_getcpu_init(void);
void lttng_ust_getcpu_init(void);
-/* old uClibc versions didn't have sched_getcpu */
-#if defined(__UCLIBC__) && __UCLIBC_MAJOR__ == 0 && \
- (__UCLIBC_MINOR__ < 9 || \
- (__UCLIBC_MINOR__ == 9 && __UCLIBC_SUBLEVEL__ <= 32))
#include <sys/syscall.h>
#define __getcpu(cpu, node, cache) syscall(__NR_getcpu, cpu, node, cache)
/*
#include <sys/syscall.h>
#define __getcpu(cpu, node, cache) syscall(__NR_getcpu, cpu, node, cache)
/*
ret = __getcpu(&cpu, NULL, NULL);
if (caa_unlikely(ret < 0))
return 0;
ret = __getcpu(&cpu, NULL, NULL);
if (caa_unlikely(ret < 0))
return 0;
+#else /* HAVE_SCHED_GETCPU */
+#endif /* HAVE_SCHED_GETCPU */
#elif (defined(__FreeBSD__) || defined(__CYGWIN__))
#elif (defined(__FreeBSD__) || defined(__CYGWIN__))