summaryrefslogtreecommitdiffstats
path: root/kernel/rcu
diff options
context:
space:
mode:
authorJiang Biao <benbjiang@tencent.com>2019-04-23 03:21:55 +0200
committerPaul E. McKenney <paulmck@linux.ibm.com>2019-05-28 17:48:19 +0200
commitf0b635627395223d3c60a3105372b4349e04772f (patch)
tree33d9f7837138d76dde8c4852401911bedeb1c656 /kernel/rcu
parentrcu: Rename rcu_data's ->deferred_qs to ->exp_deferred_qs (diff)
downloadlinux-f0b635627395223d3c60a3105372b4349e04772f.tar.xz
linux-f0b635627395223d3c60a3105372b4349e04772f.zip
rcu: Remove unused rdp local from synchronize_rcu_expedited()
Because rdp is initialized but never used in synchronize_rcu_expedited(), this commit removes it. Signed-off-by: Jiang Biao <benbjiang@tencent.com> Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r--kernel/rcu/tree_exp.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/rcu/tree_exp.h b/kernel/rcu/tree_exp.h
index e0c928d04be5..8e539710721a 100644
--- a/kernel/rcu/tree_exp.h
+++ b/kernel/rcu/tree_exp.h
@@ -793,7 +793,6 @@ static int rcu_print_task_exp_stall(struct rcu_node *rnp)
*/
void synchronize_rcu_expedited(void)
{
- struct rcu_data *rdp;
struct rcu_exp_work rew;
struct rcu_node *rnp;
unsigned long s;
@@ -830,7 +829,6 @@ void synchronize_rcu_expedited(void)
}
/* Wait for expedited grace period to complete. */
- rdp = per_cpu_ptr(&rcu_data, raw_smp_processor_id());
rnp = rcu_get_root();
wait_event(rnp->exp_wq[rcu_seq_ctr(s) & 0x3],
sync_exp_work_done(s));