aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-07-03 20:22:34 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-08-30 19:02:58 -0400
commitea12ff2b7d97607bb69b50ccc30d3819b44ffb2b (patch)
tree6ca79d9bf07ca3fa785661401650eee4e694a9ac /kernel
parent4e8b8e08f931c9378dec9f304f8a170bcf5e70bb (diff)
rcu: Remove rsp parameter from check_cpu_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 check_cpu_stall(). Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rcu/tree.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index f139b8202d5d..a222afb6d74d 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -1442,7 +1442,7 @@ static void print_cpu_stall(void)
1442 resched_cpu(smp_processor_id()); 1442 resched_cpu(smp_processor_id());
1443} 1443}
1444 1444
1445static void check_cpu_stall(struct rcu_state *rsp, struct rcu_data *rdp) 1445static void check_cpu_stall(struct rcu_data *rdp)
1446{ 1446{
1447 unsigned long gs1; 1447 unsigned long gs1;
1448 unsigned long gs2; 1448 unsigned long gs2;
@@ -1451,6 +1451,7 @@ static void check_cpu_stall(struct rcu_state *rsp, struct rcu_data *rdp)
1451 unsigned long jn; 1451 unsigned long jn;
1452 unsigned long js; 1452 unsigned long js;
1453 struct rcu_node *rnp; 1453 struct rcu_node *rnp;
1454 struct rcu_state *rsp = &rcu_state;
1454 1455
1455 if ((rcu_cpu_stall_suppress && !rcu_kick_kthreads) || 1456 if ((rcu_cpu_stall_suppress && !rcu_kick_kthreads) ||
1456 !rcu_gp_in_progress()) 1457 !rcu_gp_in_progress())
@@ -3094,7 +3095,7 @@ static int __rcu_pending(struct rcu_state *rsp, struct rcu_data *rdp)
3094 struct rcu_node *rnp = rdp->mynode; 3095 struct rcu_node *rnp = rdp->mynode;
3095 3096
3096 /* Check for CPU stalls, if enabled. */ 3097 /* Check for CPU stalls, if enabled. */
3097 check_cpu_stall(rsp, rdp); 3098 check_cpu_stall(rdp);
3098 3099
3099 /* Is this CPU a NO_HZ_FULL CPU that should ignore RCU? */ 3100 /* Is this CPU a NO_HZ_FULL CPU that should ignore RCU? */
3100 if (rcu_nohz_full_cpu(rsp)) 3101 if (rcu_nohz_full_cpu(rsp))