[lttng-dev] [PATCH] urcu-bp/urcu-qsbr: remove unneeded DEBUG_YIELD code

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Tue Dec 2 08:04:49 EST 2014


Merged into master, thanks!

Mathieu

----- Original Message -----
> From: "Lai Jiangshan" <laijs at cn.fujitsu.com>
> To: lttng-dev at lists.lttng.org, "Mathieu Desnoyers" <mathieu.desnoyers at efficios.com>
> Cc: "Lai Jiangshan" <laijs at cn.fujitsu.com>
> Sent: Tuesday, December 2, 2014 4:32:32 AM
> Subject: [PATCH] urcu-bp/urcu-qsbr: remove unneeded DEBUG_YIELD code
> 
> They were moved to debug-yield.c
> 
> Signed-off-by: Lai Jiangshan <laijs at cn.fujitsu.com>
> ---
>  urcu-bp.c   |    5 -----
>  urcu-qsbr.c |    5 -----
>  2 files changed, 0 insertions(+), 10 deletions(-)
> 
> diff --git a/urcu-bp.c b/urcu-bp.c
> index 1856d3f..6b2875d 100644
> --- a/urcu-bp.c
> +++ b/urcu-bp.c
> @@ -106,11 +106,6 @@ static int initialized;
>  
>  static pthread_key_t urcu_bp_key;
>  
> -#ifdef DEBUG_YIELD
> -unsigned int rcu_yield_active;
> -DEFINE_URCU_TLS(unsigned int, rcu_rand_yield);
> -#endif
> -
>  struct rcu_gp rcu_gp = { .ctr = RCU_GP_COUNT };
>  
>  /*
> diff --git a/urcu-qsbr.c b/urcu-qsbr.c
> index 71e7a39..a35dcfc 100644
> --- a/urcu-qsbr.c
> +++ b/urcu-qsbr.c
> @@ -66,11 +66,6 @@ struct rcu_gp rcu_gp = { .ctr = RCU_GP_ONLINE };
>   */
>  DEFINE_URCU_TLS(struct rcu_reader, rcu_reader);
>  
> -#ifdef DEBUG_YIELD
> -unsigned int rcu_yield_active;
> -DEFINE_URCU_TLS(unsigned int, rcu_rand_yield);
> -#endif
> -
>  static CDS_LIST_HEAD(registry);
>  
>  /*
> --
> 1.7.4.4
> 
> 

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list