Add mapping to namespace urcu_gp.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
void __attribute__((destructor)) rcu_exit(void);
static pthread_mutex_t rcu_gp_lock = PTHREAD_MUTEX_INITIALIZER;
-struct urcu_gp rcu_gp = { .ctr = RCU_GP_ONLINE };
+struct rcu_gp rcu_gp = { .ctr = RCU_GP_ONLINE };
/*
* Active attempts to check for reader Q.S. before calling futex().
#endif
static pthread_mutex_t rcu_gp_lock = PTHREAD_MUTEX_INITIALIZER;
-struct urcu_gp rcu_gp = { .ctr = RCU_GP_COUNT };
+struct rcu_gp rcu_gp = { .ctr = RCU_GP_COUNT };
/*
* Written to only by each individual reader. Read by both the reader and the
#define rcu_exit rcu_exit_qsbr
#define synchronize_rcu synchronize_rcu_qsbr
#define rcu_reader rcu_reader_qsbr
-#define rcu_gp_ctr rcu_gp_ctr_qsbr
-#define rcu_gp_futex rcu_gp_futex_qsbr
+#define rcu_gp rcu_gp_qsbr
#define get_cpu_call_rcu_data get_cpu_call_rcu_data_qsbr
#define get_call_rcu_thread get_call_rcu_thread_qsbr
#define rcu_exit rcu_exit_memb
#define synchronize_rcu synchronize_rcu_memb
#define rcu_reader rcu_reader_memb
-#define rcu_gp_ctr rcu_gp_ctr_memb
-#define rcu_gp_futex rcu_gp_futex_memb
+#define rcu_gp rcu_gp_memb
#define get_cpu_call_rcu_data get_cpu_call_rcu_data_memb
#define get_call_rcu_thread get_call_rcu_thread_memb
#define rcu_exit rcu_exit_sig
#define synchronize_rcu synchronize_rcu_sig
#define rcu_reader rcu_reader_sig
-#define rcu_gp_ctr rcu_gp_ctr_sig
-#define rcu_gp_futex rcu_gp_futex_sig
+#define rcu_gp rcu_gp_sig
#define get_cpu_call_rcu_data get_cpu_call_rcu_data_sig
#define get_call_rcu_thread get_call_rcu_thread_sig
#define rcu_exit rcu_exit_mb
#define synchronize_rcu synchronize_rcu_mb
#define rcu_reader rcu_reader_mb
-#define rcu_gp_ctr rcu_gp_ctr_mb
-#define rcu_gp_futex rcu_gp_futex_mb
+#define rcu_gp rcu_gp_mb
#define get_cpu_call_rcu_data get_cpu_call_rcu_data_mb
#define get_call_rcu_thread get_call_rcu_thread_mb
#define RCU_GP_ONLINE (1UL << 0)
#define RCU_GP_CTR (1UL << 1)
-struct urcu_gp {
+struct rcu_gp {
/*
* Global quiescent period counter with low-order bits unused.
* Using a int rather than a char to eliminate false register
int32_t futex;
} __attribute__((aligned(CAA_CACHE_LINE_SIZE)));
-extern struct urcu_gp rcu_gp;
+extern struct rcu_gp rcu_gp;
struct rcu_reader {
/* Data used by both reader and synchronize_rcu() */
#define RCU_GP_CTR_PHASE (1UL << (sizeof(unsigned long) << 2))
#define RCU_GP_CTR_NEST_MASK (RCU_GP_CTR_PHASE - 1)
-struct urcu_gp {
+struct rcu_gp {
/*
* Global grace period counter.
* Contains the current RCU_GP_CTR_PHASE.
int32_t futex;
} __attribute__((aligned(CAA_CACHE_LINE_SIZE)));
-extern struct urcu_gp rcu_gp;
+extern struct rcu_gp rcu_gp;
struct rcu_reader {
/* Data used by both reader and synchronize_rcu() */