X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch_x86.h;h=20db5cfff98466c528800b37f986eaf3efaad689;hp=d0a58e80caa5abfc980a58ad51407f82b0ceeee6;hb=06f22bdbb0c4c4d5db42a2e2dc35818aa61415be;hpb=5481ddb381061bda64aebc039900d21cac6a6caf diff --git a/urcu/arch_x86.h b/urcu/arch_x86.h index d0a58e8..20db5cf 100644 --- a/urcu/arch_x86.h +++ b/urcu/arch_x86.h @@ -29,7 +29,7 @@ extern "C" { #endif -#define CACHE_LINE_SIZE 128 +#define CAA_CACHE_LINE_SIZE 128 #ifdef CONFIG_RCU_HAVE_FENCE #define cmm_mb() asm volatile("mfence":::"memory") @@ -45,7 +45,7 @@ extern "C" { #define cmm_wmb() asm volatile("lock; addl $0,0(%%esp)"::: "memory") #endif -#define cpu_relax() asm volatile("rep; nop" : : : "memory"); +#define caa_cpu_relax() asm volatile("rep; nop" : : : "memory"); #define rdtscll(val) \ do { \ @@ -57,7 +57,7 @@ extern "C" { typedef unsigned long long cycles_t; -static inline cycles_t get_cycles(void) +static inline cycles_t caa_get_cycles(void) { cycles_t ret = 0;