Cleanup: remove trailing whitespaces at EOL
[urcu.git] / urcu / arch / gcc.h
index 0c83c238e0e062dfcb386ee310c16bf7b7c9ad36..e5700e451df7757eb1232a3fc8d4f4e9e283eadf 100644 (file)
 
 #include <urcu/compiler.h>
 #include <urcu/config.h>
+#include <urcu/syscall-compat.h>
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 #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;
-}
-
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
This page took 0.022462 seconds and 4 git commands to generate.