]> git.baikalelectronics.ru Git - kernel.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>
Mon, 30 Apr 2012 17:48:24 +0000 (10:48 -0700)
commit719797acb22482d254bf2d686c95702f25eb2963
treee39ebf104875f11b8f6fd56e98366918bacc4dca
parentf2e0d93087dbfcc88911b72df27b9f1012774eb8
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