Cleanup: remove leftover manual pthread detection
[urcu.git] / urcu / arch / ia64.h
index 79576851b553de92f4608090603560ba4122ccdc..bca007cf0301f0fc0d01ef5adb7635be433fa7aa 100644 (file)
@@ -33,24 +33,11 @@ extern "C" {
 #include <stdlib.h>
 #include <sys/time.h>
 
-typedef unsigned long long cycles_t;
-
-static inline cycles_t caa_get_cycles (void)
-{
-       cycles_t thetime;
-       struct timeval tv;
-
-       if (gettimeofday(&tv, NULL) != 0)
-               return 0;
-       thetime = ((cycles_t)tv.tv_sec) * 1000000ULL + ((cycles_t)tv.tv_usec);
-       return (cycles_t)thetime;
-}
-
 /*
- * Define the membarrier system call number if not yet available in the
- * system headers.
+ * On Linux, define the membarrier system call number if not yet available in
+ * the system headers.
  */
-#ifndef __NR_membarrier
+#if (defined(__linux__) && !defined(__NR_membarrier))
 #define __NR_membarrier                1344
 #endif
 
This page took 0.022801 seconds and 4 git commands to generate.