diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-07-03 20:22:34 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-08-30 19:02:53 -0400 |
commit | 33085c469aeaef3e1f8a203128cf886490419205 (patch) | |
tree | c893b4564e08ac55902da91cee008bff2d0c2611 /kernel | |
parent | 139ad4da5ab5d5600b46d930dbf4419577039d9c (diff) |
rcu: Remove rsp parameter from rcu_report_qs_rdp()
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_report_qs_rdp().
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rcu/tree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 58aca700d67b..cdf53f8b31cd 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c | |||
@@ -2320,12 +2320,13 @@ rcu_report_unblock_qs_rnp(struct rcu_node *rnp, unsigned long flags) | |||
2320 | * structure. This must be called from the specified CPU. | 2320 | * structure. This must be called from the specified CPU. |
2321 | */ | 2321 | */ |
2322 | static void | 2322 | static void |
2323 | rcu_report_qs_rdp(int cpu, struct rcu_state *rsp, struct rcu_data *rdp) | 2323 | rcu_report_qs_rdp(int cpu, struct rcu_data *rdp) |
2324 | { | 2324 | { |
2325 | unsigned long flags; | 2325 | unsigned long flags; |
2326 | unsigned long mask; | 2326 | unsigned long mask; |
2327 | bool needwake; | 2327 | bool needwake; |
2328 | struct rcu_node *rnp; | 2328 | struct rcu_node *rnp; |
2329 | struct rcu_state *rsp = &rcu_state; | ||
2329 | 2330 | ||
2330 | rnp = rdp->mynode; | 2331 | rnp = rdp->mynode; |
2331 | raw_spin_lock_irqsave_rcu_node(rnp, flags); | 2332 | raw_spin_lock_irqsave_rcu_node(rnp, flags); |
@@ -2392,7 +2393,7 @@ rcu_check_quiescent_state(struct rcu_state *rsp, struct rcu_data *rdp) | |||
2392 | * Tell RCU we are done (but rcu_report_qs_rdp() will be the | 2393 | * Tell RCU we are done (but rcu_report_qs_rdp() will be the |
2393 | * judge of that). | 2394 | * judge of that). |
2394 | */ | 2395 | */ |
2395 | rcu_report_qs_rdp(rdp->cpu, rsp, rdp); | 2396 | rcu_report_qs_rdp(rdp->cpu, rdp); |
2396 | } | 2397 | } |
2397 | 2398 | ||
2398 | /* | 2399 | /* |