]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Improve srcu_readers_active_idx()'s cache locality
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 6 Mar 2012 09:57:34 +0000 (17:57 +0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 25 Apr 2012 03:55:41 +0000 (20:55 -0700)
commit27178d9942302c7fb0b2945223a1a99626379791
tree04bcadef275ee402377b31c43f7ab252fb2eb4ab
parent3e2ccc717185fbd815fca6811e761f1b9b1b0929
rcu: Improve srcu_readers_active_idx()'s cache locality

Expand the calls to srcu_readers_active_idx() from srcu_readers_active()
inline.  This change improves cache locality by interating over the CPUs
once rather than twice.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/srcu.c