rcu: Cleanup rcu_init_geometry() code and arithmetics
authorAlexander Gordeev <agordeev@redhat.com>
Wed, 3 Jun 2015 06:18:25 +0000 (08:18 +0200)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 15 Jul 2015 21:45:14 +0000 (14:45 -0700)
commit679f9858b1769d740d933f5f1ad9dbe3292f26d2
tree0f1859a188d7ad2695aff72c005f9d38fbb7dd44
parent372b0ec24f6b516174934d68fd86d2056f1a5bba
rcu: Cleanup rcu_init_geometry() code and arithmetics

This update simplifies rcu_init_geometry() code flow
and makes calculation of the total number of rcu_node
structures more easy to read.

The update relies on the fact num_rcu_lvl[] is never
accessed beyond rcu_num_lvls index by the rest of the
code. Therefore, there is no need initialize the whole
num_rcu_lvl[].

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
This page took 0.025565 seconds and 5 git commands to generate.