diff options
author | Alexander Gordeev <agordeev@redhat.com> | 2015-06-03 08:18:28 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-07-15 14:45:18 -0700 |
commit | 05b84aec465c34da242a224d2438d192ca0feec7 (patch) | |
tree | 4dc8cca8a45e4bea1eb40f71ad42c7325c6b6069 /virt | |
parent | a6d77081e266605c9f4d8c11e0ee00468b9dc614 (diff) | |
download | linux-05b84aec465c34da242a224d2438d192ca0feec7.tar.bz2 |
rcu: Limit rcu_capacity[] size to RCU_NUM_LVLS items
Number of items in rcu_capacity[] array is defined by macro
MAX_RCU_LVLS. However, that array is never accessed beyond
RCU_NUM_LVLS index. Therefore, we can limit the array to
RCU_NUM_LVLS items and eliminate MAX_RCU_LVLS. As result,
in most cases the memory is conserved.
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions