summaryrefslogtreecommitdiffstats
path: root/kernel/rcutree.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-03-19 12:27:50 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-06-10 13:39:44 -0700
commitce3d9c03d1fa079678cc8df1517011e215517cda (patch)
tree6363d0305edee5246afe6220fa428b7712887982 /kernel/rcutree.c
parent63274cfb94aac109fc2490a70a96b26751608e57 (diff)
downloadop-kernel-dev-ce3d9c03d1fa079678cc8df1517011e215517cda.zip
op-kernel-dev-ce3d9c03d1fa079678cc8df1517011e215517cda.tar.gz
rcu: Inline trivial wrapper function rcu_start_gp_per_cpu()
Given the changes that introduce note_gp_change(), rcu_start_gp_per_cpu() is now a trivial wrapper function with only one caller. This commit therefore inlines it into its sole call site. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcutree.c')
-rw-r--r--kernel/rcutree.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index b730149..391bd72 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
@@ -1308,18 +1308,6 @@ static void note_gp_changes(struct rcu_state *rsp, struct rcu_data *rdp)
}
/*
- * Do per-CPU grace-period initialization for running CPU. The caller
- * must hold the lock of the leaf rcu_node structure corresponding to
- * this CPU.
- */
-static void
-rcu_start_gp_per_cpu(struct rcu_state *rsp, struct rcu_node *rnp, struct rcu_data *rdp)
-{
- /* Set state so that this CPU will detect the next quiescent state. */
- __note_gp_changes(rsp, rnp, rdp);
-}
-
-/*
* Initialize a new grace period.
*/
static int rcu_gp_init(struct rcu_state *rsp)
@@ -1367,7 +1355,7 @@ static int rcu_gp_init(struct rcu_state *rsp)
WARN_ON_ONCE(rnp->completed != rsp->completed);
ACCESS_ONCE(rnp->completed) = rsp->completed;
if (rnp == rdp->mynode)
- rcu_start_gp_per_cpu(rsp, rnp, rdp);
+ __note_gp_changes(rsp, rnp, rdp);
rcu_preempt_boost_start_gp(rnp);
trace_rcu_grace_period_init(rsp->name, rnp->gpnum,
rnp->level, rnp->grplo,
OpenPOWER on IntegriCloud