diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2011-08-06 07:39:02 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2011-09-29 06:38:31 +0200 |
commit | 717f98f0f87c16c1e5768ac8f67c27f3d3535a25 (patch) | |
tree | 4d2234eb29a350a3a5b1d7e4d29445c57b66f9f2 /kernel/rcutree.c | |
parent | nohz: Remove nohz_cpu_mask (diff) | |
download | linux-717f98f0f87c16c1e5768ac8f67c27f3d3535a25.tar.xz linux-717f98f0f87c16c1e5768ac8f67c27f3d3535a25.zip |
rcu: Eliminate in_irq() checks in rcu_enter_nohz()
The in_irq() check in rcu_enter_nohz() is redundant because if we really
are in an interrupt, the attempt to re-enter dyntick-idle mode will invoke
rcu_needs_cpu() in any case, which will force the check for RCU callbacks.
So this commit removes the check along with the set_need_resched().
Suggested-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutree.c')
-rw-r--r-- | kernel/rcutree.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c index 7e2f297aeec8..0c6c30dc6a7c 100644 --- a/kernel/rcutree.c +++ b/kernel/rcutree.c @@ -373,13 +373,6 @@ void rcu_enter_nohz(void) smp_mb__after_atomic_inc(); /* Force ordering with next sojourn. */ WARN_ON_ONCE(atomic_read(&rdtp->dynticks) & 0x1); local_irq_restore(flags); - - /* If the interrupt queued a callback, get out of dyntick mode. */ - if (in_irq() && - (__get_cpu_var(rcu_sched_data).nxtlist || - __get_cpu_var(rcu_bh_data).nxtlist || - rcu_preempt_needs_cpu(smp_processor_id()))) - set_need_resched(); } /* |