X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=urcu%2Farch%2Fgcc.h;h=8684a16f92638f0a0f8f5ef08d85ca2b90dbaa10;hb=f8c43f458c80566d298d539ec518a8be8c7cc861;hp=0c83c238e0e062dfcb386ee310c16bf7b7c9ad36;hpb=1b9119f8d4c3f40a61d4ee5403f0e7e5967c33d8;p=userspace-rcu.git diff --git a/urcu/arch/gcc.h b/urcu/arch/gcc.h index 0c83c23..8684a16 100644 --- a/urcu/arch/gcc.h +++ b/urcu/arch/gcc.h @@ -24,6 +24,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { @@ -32,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; -} - #ifdef __cplusplus } #endif