diff options
author | Alexander Gordeev <agordeev@redhat.com> | 2015-06-03 08:18:25 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-07-15 14:45:14 -0700 |
commit | 679f9858b1769d740d933f5f1ad9dbe3292f26d2 (patch) | |
tree | 0f1859a188d7ad2695aff72c005f9d38fbb7dd44 /block | |
parent | 372b0ec24f6b516174934d68fd86d2056f1a5bba (diff) |
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>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions