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

rcu: Remove rsp parameter from print_other_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
print_other_cpu_stall().
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent e1741c69
...@@ -1313,7 +1313,7 @@ static void panic_on_rcu_stall(void) ...@@ -1313,7 +1313,7 @@ static void panic_on_rcu_stall(void)
panic("RCU Stall\n"); panic("RCU Stall\n");
} }
static void print_other_cpu_stall(struct rcu_state *rsp, unsigned long gp_seq) static void print_other_cpu_stall(unsigned long gp_seq)
{ {
int cpu; int cpu;
unsigned long flags; unsigned long flags;
...@@ -1321,6 +1321,7 @@ static void print_other_cpu_stall(struct rcu_state *rsp, unsigned long gp_seq) ...@@ -1321,6 +1321,7 @@ static void print_other_cpu_stall(struct rcu_state *rsp, unsigned long gp_seq)
unsigned long j; unsigned long j;
int ndetected = 0; int ndetected = 0;
struct rcu_node *rnp = rcu_get_root(); struct rcu_node *rnp = rcu_get_root();
struct rcu_state *rsp = &rcu_state;
long totqlen = 0; long totqlen = 0;
/* Kick and suppress, if so configured. */ /* Kick and suppress, if so configured. */
...@@ -1498,7 +1499,7 @@ static void check_cpu_stall(struct rcu_state *rsp, struct rcu_data *rdp) ...@@ -1498,7 +1499,7 @@ static void check_cpu_stall(struct rcu_state *rsp, struct rcu_data *rdp)
cmpxchg(&rsp->jiffies_stall, js, jn) == js) { cmpxchg(&rsp->jiffies_stall, js, jn) == js) {
/* They had a few time units to dump stack, so complain. */ /* They had a few time units to dump stack, so complain. */
print_other_cpu_stall(rsp, gs2); print_other_cpu_stall(gs2);
} }
} }
......
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