From: Paul E. McKenney Date: Wed, 4 Jul 2018 00:22:34 +0000 (-0700) Subject: rcu: Remove rsp parameter from rcu_report_qs_rdp() X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~6130^2^2^2~92 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=33085c469aeaef3e1f8a203128cf886490419205;p=linux.git rcu: Remove rsp parameter from rcu_report_qs_rdp() There now is only one rcu_state structure in a given build of the Linux kernel, so there is no need to pass it as a parameter to RCU's functions. This commit therefore removes the rsp parameter from rcu_report_qs_rdp(). Signed-off-by: Paul E. McKenney --- diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 58aca700d67b..cdf53f8b31cd 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -2320,12 +2320,13 @@ rcu_report_unblock_qs_rnp(struct rcu_node *rnp, unsigned long flags) * structure. This must be called from the specified CPU. */ static void -rcu_report_qs_rdp(int cpu, struct rcu_state *rsp, struct rcu_data *rdp) +rcu_report_qs_rdp(int cpu, struct rcu_data *rdp) { unsigned long flags; unsigned long mask; bool needwake; struct rcu_node *rnp; + struct rcu_state *rsp = &rcu_state; rnp = rdp->mynode; raw_spin_lock_irqsave_rcu_node(rnp, flags); @@ -2392,7 +2393,7 @@ rcu_check_quiescent_state(struct rcu_state *rsp, struct rcu_data *rdp) * Tell RCU we are done (but rcu_report_qs_rdp() will be the * judge of that). */ - rcu_report_qs_rdp(rdp->cpu, rsp, rdp); + rcu_report_qs_rdp(rdp->cpu, rdp); } /*