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:56 -0400
commit8fd119b6522fea9ba5e68a3aa653f1490778fb25 (patch)
treeb8a3e9afc2d7a4395732a9e31a6b55d4904d208c /kernel
parentad3832e974eba3b6d253d60a28eac2f2da7ea7ff (diff)
rcu: Remove rsp parameter from rcu_check_gp_kthread_starvation()
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_kthread_starvation(). Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rcu/tree.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index bcfdb92d5d10..09f05083f01d 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -1240,10 +1240,11 @@ static const char *gp_state_getname(short gs)
1240/* 1240/*
1241 * Complain about starvation of grace-period kthread. 1241 * Complain about starvation of grace-period kthread.
1242 */ 1242 */
1243static void rcu_check_gp_kthread_starvation(struct rcu_state *rsp) 1243static void rcu_check_gp_kthread_starvation(void)
1244{ 1244{
1245 unsigned long gpa; 1245 unsigned long gpa;
1246 unsigned long j; 1246 unsigned long j;
1247 struct rcu_state *rsp = &rcu_state;
1247 1248
1248 j = jiffies; 1249 j = jiffies;
1249 gpa = READ_ONCE(rsp->gp_activity); 1250 gpa = READ_ONCE(rsp->gp_activity);
@@ -1377,7 +1378,7 @@ static void print_other_cpu_stall(struct rcu_state *rsp, unsigned long gp_seq)
1377 WRITE_ONCE(rsp->jiffies_stall, 1378 WRITE_ONCE(rsp->jiffies_stall,
1378 jiffies + 3 * rcu_jiffies_till_stall_check() + 3); 1379 jiffies + 3 * rcu_jiffies_till_stall_check() + 3);
1379 1380
1380 rcu_check_gp_kthread_starvation(rsp); 1381 rcu_check_gp_kthread_starvation();
1381 1382
1382 panic_on_rcu_stall(); 1383 panic_on_rcu_stall();
1383 1384
@@ -1415,7 +1416,7 @@ static void print_cpu_stall(struct rcu_state *rsp)
1415 jiffies - rsp->gp_start, 1416 jiffies - rsp->gp_start,
1416 (long)rcu_seq_current(&rsp->gp_seq), totqlen); 1417 (long)rcu_seq_current(&rsp->gp_seq), totqlen);
1417 1418
1418 rcu_check_gp_kthread_starvation(rsp); 1419 rcu_check_gp_kthread_starvation();
1419 1420
1420 rcu_dump_cpu_stacks(rsp); 1421 rcu_dump_cpu_stacks(rsp);
1421 1422