commit | dc87917501e324701dbfb249def44054b5220187 | [log] [tgz] |
---|---|---|
author | Lai Jiangshan <laijs@cn.fujitsu.com> | Tue Mar 06 17:57:34 2012 +0800 |
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | Mon Apr 30 10:48:24 2012 -0700 |
tree | e39ebf104875f11b8f6fd56e98366918bacc4dca | |
parent | 966f58c2f6df826f385706673a9bb1edcfd3499a [diff] |
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>