X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch%2Faarch64.h;h=a68813d14cd9074017bde2620a89edac9afa5a83;hp=946e1c64699f8a97e7d5d18de5b2e02aa8aed7eb;hb=f8c43f458c80566d298d539ec518a8be8c7cc861;hpb=c23069c6cf733ed8a39e64300c264285f658ae23 diff --git a/urcu/arch/aarch64.h b/urcu/arch/aarch64.h index 946e1c6..a68813d 100644 --- a/urcu/arch/aarch64.h +++ b/urcu/arch/aarch64.h @@ -33,19 +33,6 @@ extern "C" { #include #include -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