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