Commit b96f9dc4 authored by Paul E. McKenney's avatar Paul E. McKenney

rcu: Remove rsp parameter from rcu_check_gp_start_stall()

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_gp_start_stall().
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent e9ecb780
...@@ -2686,13 +2686,13 @@ static void force_quiescent_state(void) ...@@ -2686,13 +2686,13 @@ static void force_quiescent_state(void)
* RCU to come out of its idle mode. * RCU to come out of its idle mode.
*/ */
static void static void
rcu_check_gp_start_stall(struct rcu_state *rsp, struct rcu_node *rnp, rcu_check_gp_start_stall(struct rcu_node *rnp, struct rcu_data *rdp)
struct rcu_data *rdp)
{ {
const unsigned long gpssdelay = rcu_jiffies_till_stall_check() * HZ; const unsigned long gpssdelay = rcu_jiffies_till_stall_check() * HZ;
unsigned long flags; unsigned long flags;
unsigned long j; unsigned long j;
struct rcu_node *rnp_root = rcu_get_root(); struct rcu_node *rnp_root = rcu_get_root();
struct rcu_state *rsp = &rcu_state;
static atomic_t warned = ATOMIC_INIT(0); static atomic_t warned = ATOMIC_INIT(0);
if (!IS_ENABLED(CONFIG_PROVE_RCU) || rcu_gp_in_progress() || if (!IS_ENABLED(CONFIG_PROVE_RCU) || rcu_gp_in_progress() ||
...@@ -2772,7 +2772,7 @@ __rcu_process_callbacks(struct rcu_state *rsp) ...@@ -2772,7 +2772,7 @@ __rcu_process_callbacks(struct rcu_state *rsp)
local_irq_restore(flags); local_irq_restore(flags);
} }
rcu_check_gp_start_stall(rsp, rnp, rdp); rcu_check_gp_start_stall(rnp, rdp);
/* If there are callbacks ready, invoke them. */ /* If there are callbacks ready, invoke them. */
if (rcu_segcblist_ready_cbs(&rdp->cblist)) if (rcu_segcblist_ready_cbs(&rdp->cblist))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment