From: Mathieu Desnoyers Date: Fri, 18 Sep 2009 12:32:23 +0000 (-0400) Subject: Rename define X-Git-Tag: v0.1~75 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=555704664c109a2be7290e1f5ce3806d0c28b5d9;p=userspace-rcu.git Rename define Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-qsbr-static.h b/urcu-qsbr-static.h index 887dc3d..57f0c50 100644 --- a/urcu-qsbr-static.h +++ b/urcu-qsbr-static.h @@ -162,7 +162,7 @@ static inline void reader_barrier() } #define RCU_GP_ONLINE (1UL << 0) -#define RCU_GP_COUNT (1UL << 1) +#define RCU_GP_CTR (1UL << 1) /* * Global quiescent period counter with low-order bits unused. diff --git a/urcu-qsbr.c b/urcu-qsbr.c index 5f9e46d..ba6e02a 100644 --- a/urcu-qsbr.c +++ b/urcu-qsbr.c @@ -153,7 +153,7 @@ void synchronize_rcu(void) STORE_SHARED(rcu_reader_qs_gp, 0); internal_urcu_lock(); - STORE_SHARED(urcu_gp_ctr, urcu_gp_ctr + RCU_GP_COUNT); + STORE_SHARED(urcu_gp_ctr, urcu_gp_ctr + RCU_GP_CTR); wait_for_quiescent_state(); internal_urcu_unlock();