]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Eliminate in_irq() checks in rcu_enter_nohz()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sat, 6 Aug 2011 05:39:02 +0000 (22:39 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 10 Aug 2011 02:28:40 +0000 (19:28 -0700)
commit74955ff32a37d1e0b6a981dc637babf8fcbd569e
tree483d1314d07bedc55831ce1a5ca245ca0b0a6c6e
parent46e1519b5a7385f01ef26845f276b4e5f9be7a47
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>
kernel/rcutree.c