]> asedeno.scripts.mit.edu Git - linux.git/commit
rcu: Open-code the rcu_cblist_empty() function
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 2 May 2017 15:18:40 +0000 (08:18 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 2 May 2017 15:18:40 +0000 (08:18 -0700)
commit8ef0f37efb7863a04b1e4102d42b7c0b1a59d40f
tree1ec092824b9fe6377174df097e61bd1603660646
parent98059b98619d093366462ff0a4e1258e946accb9
rcu: Open-code the rcu_cblist_empty() function

Because the rcu_cblist_empty() just samples the ->head pointer, and
because the rcu_cblist structure is quite straightforward, it makes
sense to open-code rcu_cblist_empty(p) as !p->head, cutting out a
level of indirection.  This commit makes this change.

Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
kernel/rcu/rcu_segcblist.h
kernel/rcu/tree.c
kernel/rcu/tree_plugin.h