Cleanup: move generic caa_get_cycles to arch/generic.h
[urcu.git] / urcu / arch / aarch64.h
index 946e1c64699f8a97e7d5d18de5b2e02aa8aed7eb..a68813d14cd9074017bde2620a89edac9afa5a83 100644 (file)
@@ -33,19 +33,6 @@ 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. aarch64 implements asm-generic/unistd.h system call
This page took 0.031088 seconds and 4 git commands to generate.