rcu: Remove rcu_dynticks * parameters when they are always this_cpu_ptr(&rcu_dynticks)
authorChristoph Lameter <cl@linux.com>
Tue, 2 Sep 2014 21:13:44 +0000 (14:13 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 4 Nov 2014 03:19:26 +0000 (19:19 -0800)
commit28ced795cbb43f01146feb96d03a72facdee9911
tree19766802a6044c9310aa7d9b6a73ee93346a12bd
parentd7e29933969e5ca7c112ce1368a07911f4485dc2
rcu: Remove rcu_dynticks * parameters when they are always this_cpu_ptr(&rcu_dynticks)

For some functions in kernel/rcu/tree* the rdtp parameter is always
this_cpu_ptr(rdtp).  Remove the parameter if constant and calculate the
pointer in function.

This will have the advantage that it is obvious that the address are
all per cpu offsets and thus it will enable the use of this_cpu_ops in
the future.

Signed-off-by: Christoph Lameter <cl@linux.com>
[ paulmck: Forward-ported to rcu/dev, whitespace adjustment. ]
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Pranith Kumar <bobby.prani@gmail.com>
kernel/rcu/tree.c
kernel/rcu/tree.h
kernel/rcu/tree_plugin.h