rcu: Eliminate rcu_implicit_dynticks_qs() local variable rnhqp
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 22 Jul 2021 22:49:05 +0000 (15:49 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 13 Sep 2021 23:32:45 +0000 (16:32 -0700)
commit88ee23ef1c129e40309f4612f80dd74be4590c03
tree32238d27d652415f7c9bd5da3d9d05af54db555a
parent52b030aa278642194f5d25872c33360013b0167e
rcu: Eliminate rcu_implicit_dynticks_qs() local variable rnhqp

The rcu_implicit_dynticks_qs() function's local variable rnhqp references
the ->rcu_need_heavy_qs field in the rcu_data structure referenced by
the function parameter rdp, with a rather odd method for computing
the pointer to this field.  This commit therefore simplifies things
and saves a few lines of code by replacing each instance of rnhqp with
&rdp->need_heavy_qs.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c