aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.ibm.com>2018-11-28 20:02:44 -0500
committerPaul E. McKenney <paulmck@linux.ibm.com>2019-01-25 18:28:25 -0500
commitc46f497a6151d48cb341e18fdd4dff345f7d253d (patch)
tree19a4207f869bb627beeaf206ad3084454cc1094d
parentc97058d03329284068e45796df13510e5f940d8b (diff)
rcu: Inline rcu_kthread_do_work() into its sole remaining caller
The rcu_kthread_do_work() function has a single-line body and only one remaining caller. This commit therefore saves a few lines of code by inlining rcu_kthread_do_work() into its sole remaining caller. Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
-rw-r--r--kernel/rcu/tree_plugin.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h
index 4d4091565a2c..bcf3e7366a28 100644
--- a/kernel/rcu/tree_plugin.h
+++ b/kernel/rcu/tree_plugin.h
@@ -1369,11 +1369,6 @@ static int rcu_spawn_one_boost_kthread(struct rcu_node *rnp)
1369 return 0; 1369 return 0;
1370} 1370}
1371 1371
1372static void rcu_kthread_do_work(void)
1373{
1374 rcu_do_batch(this_cpu_ptr(&rcu_data));
1375}
1376
1377static void rcu_cpu_kthread_setup(unsigned int cpu) 1372static void rcu_cpu_kthread_setup(unsigned int cpu)
1378{ 1373{
1379 struct sched_param sp; 1374 struct sched_param sp;
@@ -1413,7 +1408,7 @@ static void rcu_cpu_kthread(unsigned int cpu)
1413 *workp = 0; 1408 *workp = 0;
1414 local_irq_enable(); 1409 local_irq_enable();
1415 if (work) 1410 if (work)
1416 rcu_kthread_do_work(); 1411 rcu_do_batch(this_cpu_ptr(&rcu_data));
1417 local_bh_enable(); 1412 local_bh_enable();
1418 if (*workp == 0) { 1413 if (*workp == 0) {
1419 trace_rcu_utilization(TPS("End CPU kthread@rcu_wait")); 1414 trace_rcu_utilization(TPS("End CPU kthread@rcu_wait"));