Skip to content

Commit c46f497

Browse files
author
Paul E. McKenney
committed
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 <[email protected]>
1 parent c97058d commit c46f497

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

kernel/rcu/tree_plugin.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,11 +1369,6 @@ static int rcu_spawn_one_boost_kthread(struct rcu_node *rnp)
13691369
return 0;
13701370
}
13711371

1372-
static void rcu_kthread_do_work(void)
1373-
{
1374-
rcu_do_batch(this_cpu_ptr(&rcu_data));
1375-
}
1376-
13771372
static void rcu_cpu_kthread_setup(unsigned int cpu)
13781373
{
13791374
struct sched_param sp;
@@ -1413,7 +1408,7 @@ static void rcu_cpu_kthread(unsigned int cpu)
14131408
*workp = 0;
14141409
local_irq_enable();
14151410
if (work)
1416-
rcu_kthread_do_work();
1411+
rcu_do_batch(this_cpu_ptr(&rcu_data));
14171412
local_bh_enable();
14181413
if (*workp == 0) {
14191414
trace_rcu_utilization(TPS("End CPU kthread@rcu_wait"));

0 commit comments

Comments
 (0)