Skip to content

Commit

Permalink
rcu: Remove fastpath from __rcu_process_callbacks()
Browse files Browse the repository at this point in the history
The standard code path accommodates a condition when no
RCU callbacks are ready to invoke. Since size of the code
is a priority for tiny RCU, remove the fast path.

Cc: "Paul E. McKenney" <[email protected]>
Signed-off-by: Alexander Gordeev <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
  • Loading branch information
Alexander Gordeev authored and paulmck committed Feb 26, 2015
1 parent 27153ac commit 915e8a4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions kernel/rcu/tiny.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,17 +168,6 @@ static void __rcu_process_callbacks(struct rcu_ctrlblk *rcp)
unsigned long flags;
RCU_TRACE(int cb_count = 0);

/* If no RCU callbacks ready to invoke, just return. */
if (&rcp->rcucblist == rcp->donetail) {
RCU_TRACE(trace_rcu_batch_start(rcp->name, 0, 0, -1));
RCU_TRACE(trace_rcu_batch_end(rcp->name, 0,
!!ACCESS_ONCE(rcp->rcucblist),
need_resched(),
is_idle_task(current),
false));
return;
}

/* Move the ready-to-invoke callbacks to a local list. */
local_irq_save(flags);
RCU_TRACE(trace_rcu_batch_start(rcp->name, 0, rcp->qlen, -1));
Expand Down

0 comments on commit 915e8a4

Please sign in to comment.