Cleanup: move generic caa_get_cycles to arch/generic.h
[urcu.git] / urcu / arch / gcc.h
index 5638f3667a69b50ceb38d4ecbb19214d21879642..8684a16f92638f0a0f8f5ef08d85ca2b90dbaa10 100644 (file)
@@ -33,19 +33,6 @@ extern "C" {
 #include <stdlib.h>
 #include <sys/time.h>
 
 #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 
 }
 #endif
 #ifdef __cplusplus 
 }
 #endif
This page took 0.022657 seconds and 4 git commands to generate.