[PATCH v3 4/9] rcu: Simplify rcu_init_geometry() capacity arithmetics

2015-06-03 Thread Alexander Gordeev
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" Cc: Steven Rostedt Signed-off-by: Alexander Gordeev --- kernel/rcu/tree.c | 18

[PATCH v3 4/9] rcu: Simplify rcu_init_geometry() capacity arithmetics

2015-06-03 Thread Alexander Gordeev
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 paul...@linux.vnet.ibm.com Cc: Steven Rostedt rost...@goodmis.org Signed-off-by: Alexander Gordeev