Cleanup: move generic caa_get_cycles to arch/generic.h
[urcu.git] / urcu / arch / arm.h
index 2d766cd61059684ac30f3cb2989d2a52d07571e1..9483bab0e23761a8f6e853dfbe9258b73adb8256 100644 (file)
@@ -39,18 +39,13 @@ 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.
+ */
+#ifndef __NR_membarrier
+#define __NR_membarrier                389
+#endif
 
 #ifdef __cplusplus 
 }
This page took 0.023197 seconds and 4 git commands to generate.