diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-10-21 15:50:04 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-11-03 22:20:34 -0500 |
commit | 38200cf24702e5d79ce6c8f4c62036c41845c62d (patch) | |
tree | 840642332deb3f091142c78994de1f8db73b4f8c /kernel/rcu/tree.c | |
parent | 86aea0e6e7d571a9452082a7198d0603cc5dd965 (diff) |
rcu: Remove "cpu" argument to rcu_note_context_switch()
The "cpu" argument to rcu_note_context_switch() is always the current
CPU, so drop it. This in turn allows the "cpu" argument to
rcu_preempt_note_context_switch() to be removed, which allows the sole
use of "cpu" in both functions to be replaced with a this_cpu_ptr().
Again, the anticipated cross-CPU uses of these functions has been
replaced by NO_HZ_FULL.
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 1af5e2cdcbeb..b591f1459240 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c | |||
@@ -286,11 +286,11 @@ static void rcu_momentary_dyntick_idle(void) | |||
286 | * and requires special handling for preemptible RCU. | 286 | * and requires special handling for preemptible RCU. |
287 | * The caller must have disabled preemption. | 287 | * The caller must have disabled preemption. |
288 | */ | 288 | */ |
289 | void rcu_note_context_switch(int cpu) | 289 | void rcu_note_context_switch(void) |
290 | { | 290 | { |
291 | trace_rcu_utilization(TPS("Start context switch")); | 291 | trace_rcu_utilization(TPS("Start context switch")); |
292 | rcu_sched_qs(); | 292 | rcu_sched_qs(); |
293 | rcu_preempt_note_context_switch(cpu); | 293 | rcu_preempt_note_context_switch(); |
294 | if (unlikely(raw_cpu_read(rcu_sched_qs_mask))) | 294 | if (unlikely(raw_cpu_read(rcu_sched_qs_mask))) |
295 | rcu_momentary_dyntick_idle(); | 295 | rcu_momentary_dyntick_idle(); |
296 | trace_rcu_utilization(TPS("End context switch")); | 296 | trace_rcu_utilization(TPS("End context switch")); |