diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-10-22 18:03:43 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-11-03 22:20:49 -0500 |
commit | 198bbf8127dd2dec6661622981a4e1f9b8f967b7 (patch) | |
tree | 29a9bb03ae2dab18abfe087a9893b151e0ea73cf /kernel/rcu/tree.c | |
parent | aa6da5140b784ece799f670bf532096f67aa7785 (diff) |
rcu: Remove "cpu" argument to rcu_prepare_for_idle()
The "cpu" argument to rcu_prepare_for_idle() is always the current
CPU, so drop it. This in turn allows two of the uses of "cpu" in
this function to be replaced with a this_cpu_ptr() and the third by
smp_processor_id(), replacing that of the call to rcu_prepare_for_idle().
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index d678a98caf1d..8251938fb4ae 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c | |||
@@ -531,7 +531,7 @@ static void rcu_eqs_enter_common(long long oldval, bool user) | |||
531 | rdp = this_cpu_ptr(rsp->rda); | 531 | rdp = this_cpu_ptr(rsp->rda); |
532 | do_nocb_deferred_wakeup(rdp); | 532 | do_nocb_deferred_wakeup(rdp); |
533 | } | 533 | } |
534 | rcu_prepare_for_idle(smp_processor_id()); | 534 | rcu_prepare_for_idle(); |
535 | /* CPUs seeing atomic_inc() must see prior RCU read-side crit sects */ | 535 | /* CPUs seeing atomic_inc() must see prior RCU read-side crit sects */ |
536 | smp_mb__before_atomic(); /* See above. */ | 536 | smp_mb__before_atomic(); /* See above. */ |
537 | atomic_inc(&rdtp->dynticks); | 537 | atomic_inc(&rdtp->dynticks); |