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/sched/core.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/sched/core.c')
-rw-r--r-- | kernel/sched/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 44999505e1bf..cc186945296d 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -2802,7 +2802,7 @@ need_resched: | |||
2802 | preempt_disable(); | 2802 | preempt_disable(); |
2803 | cpu = smp_processor_id(); | 2803 | cpu = smp_processor_id(); |
2804 | rq = cpu_rq(cpu); | 2804 | rq = cpu_rq(cpu); |
2805 | rcu_note_context_switch(cpu); | 2805 | rcu_note_context_switch(); |
2806 | prev = rq->curr; | 2806 | prev = rq->curr; |
2807 | 2807 | ||
2808 | schedule_debug(prev); | 2808 | schedule_debug(prev); |