rcu: Remove rsp parameter from rcu_check_quiescent_state()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 4 Jul 2018 00:22:34 +0000 (17:22 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 30 Aug 2018 23:03:04 +0000 (16:03 -0700)
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_check_quiescent_state().

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c

index af4aeaaee04668e1d72069d9edb2627371bc2de6..51d076495548c329a5e0cb640eeaac91a56bbd89 100644 (file)
@@ -2375,7 +2375,7 @@ rcu_report_qs_rdp(int cpu, struct rcu_data *rdp)
  * quiescent state for this grace period, and record that fact if so.
  */
 static void
-rcu_check_quiescent_state(struct rcu_state *rsp, struct rcu_data *rdp)
+rcu_check_quiescent_state(struct rcu_data *rdp)
 {
        /* Check for grace-period ends and beginnings. */
        note_gp_changes(rdp);
@@ -2753,7 +2753,7 @@ __rcu_process_callbacks(struct rcu_state *rsp)
                resched_cpu(rdp->cpu); /* Provoke future context switch. */
 
        /* Update RCU state based on any recent quiescent states. */
-       rcu_check_quiescent_state(rsp, rdp);
+       rcu_check_quiescent_state(rdp);
 
        /* No grace period and unregistered callbacks? */
        if (!rcu_gp_in_progress() &&