aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-10-21 10:53:02 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-11-03 22:20:11 -0500
commitc3377c2da6e594504c900d5ef72374c109e4ca99 (patch)
treea22b9894500e373290eee77862b0f29a21879b29 /kernel/rcu/tree.c
parent11bbb235c26f93b7c69e441452e44adbf6ed6996 (diff)
rcu: Remove "cpu" argument to rcu_check_callbacks()
The "cpu" argument was kept around on the off-chance that RCU might offload scheduler-clock interrupts. However, this offload approach has been replaced by NO_HZ_FULL, which offloads -all- RCU processing from qualifying CPUs. It is therefore time to remove the "cpu" argument to rcu_check_callbacks(), which this commit does. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Pranith Kumar <bobby.prani@gmail.com>
Diffstat (limited to 'kernel/rcu/tree.c')
-rw-r--r--kernel/rcu/tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index ab6fcfb4fe11..3107811bba69 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -2388,7 +2388,7 @@ static void rcu_do_batch(struct rcu_state *rsp, struct rcu_data *rdp)
2388 * invoked from the scheduling-clock interrupt. If rcu_pending returns 2388 * invoked from the scheduling-clock interrupt. If rcu_pending returns
2389 * false, there is no point in invoking rcu_check_callbacks(). 2389 * false, there is no point in invoking rcu_check_callbacks().
2390 */ 2390 */
2391void rcu_check_callbacks(int cpu, int user) 2391void rcu_check_callbacks(int user)
2392{ 2392{
2393 trace_rcu_utilization(TPS("Start scheduler-tick")); 2393 trace_rcu_utilization(TPS("Start scheduler-tick"));
2394 increment_cpu_stall_ticks(); 2394 increment_cpu_stall_ticks();
@@ -2420,8 +2420,8 @@ void rcu_check_callbacks(int cpu, int user)
2420 2420
2421 rcu_bh_qs(); 2421 rcu_bh_qs();
2422 } 2422 }
2423 rcu_preempt_check_callbacks(cpu); 2423 rcu_preempt_check_callbacks(smp_processor_id());
2424 if (rcu_pending(cpu)) 2424 if (rcu_pending(smp_processor_id()))
2425 invoke_rcu_core(); 2425 invoke_rcu_core();
2426 if (user) 2426 if (user)
2427 rcu_note_voluntary_context_switch(current); 2427 rcu_note_voluntary_context_switch(current);