[PATCH tip/core/rcu 2/3] rcu: Open-code the rcu_cblist_n_cbs() function

2017-05-02 Thread Paul E. McKenney
Because the rcu_cblist_n_cbs() just samples the ->len counter, and because the rcu_cblist structure is quite straightforward, it makes sense to open-code rcu_cblist_n_cbs(p) as p->len, cutting out a level of indirection. This commit makes this change. Reported-by: Ingo Molnar

[PATCH tip/core/rcu 2/3] rcu: Open-code the rcu_cblist_n_cbs() function

2017-05-02 Thread Paul E. McKenney
Because the rcu_cblist_n_cbs() just samples the ->len counter, and because the rcu_cblist structure is quite straightforward, it makes sense to open-code rcu_cblist_n_cbs(p) as p->len, cutting out a level of indirection. This commit makes this change. Reported-by: Ingo Molnar Signed-off-by: