X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch%2Farm.h;h=d7affaabe85685b6c62929073e7baa732ef69a1d;hp=1457166270314653f9564cdaf99e6c6a598e7e9b;hb=67ecffc0f530a7b5c4dd5111ea7dd3213da8eb91;hpb=da5b715a201a36156fa520b6442db7c46f6fdade diff --git a/urcu/arch/arm.h b/urcu/arch/arm.h index 1457166..d7affaa 100644 --- a/urcu/arch/arm.h +++ b/urcu/arch/arm.h @@ -28,7 +28,7 @@ #ifdef __cplusplus extern "C" { -#endif +#endif #ifdef CONFIG_RCU_ARM_HAVE_DMB #define cmm_mb() __asm__ __volatile__ ("dmb":::"memory") @@ -39,19 +39,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. @@ -60,7 +47,7 @@ static inline cycles_t caa_get_cycles (void) #define __NR_membarrier 389 #endif -#ifdef __cplusplus +#ifdef __cplusplus } #endif