rcu: Simplify rcu_init_geometry() capacity arithmetics
authorAlexander Gordeev <agordeev@redhat.com>
Wed, 3 Jun 2015 06:18:26 +0000 (08:18 +0200)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 15 Jul 2015 21:45:15 +0000 (14:45 -0700)
commit9618138b09260e3df5af5a0d7bdc8fca010f6a3f
tree9f647d7621e5bf1ddb21d0c650afe9c2b35f0861
parent679f9858b1769d740d933f5f1ad9dbe3292f26d2
rcu: Simplify rcu_init_geometry() capacity arithmetics

Current code suggests that introducing the extra level to
rcu_capacity[] array makes some of the arithmetic easier.
Well, in fact it appears rather confusing and unnecessary.

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>
kernel/rcu/tree.c