rcu: Remove redundant code from rcu_cleanup_after_idle()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 23 Aug 2013 01:16:16 +0000 (18:16 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 25 Sep 2013 13:44:03 +0000 (06:44 -0700)
commit7a497c963eceac42677ce1f5d7bb470abedd15f4
tree370bd8bf6ef09ad443e8a626a0ddf2cf8d0f219f
parent272b98c6455f00884f0350f775c5342358ebb73f
rcu: Remove redundant code from rcu_cleanup_after_idle()

The rcu_try_advance_all_cbs() function returns a bool saying whether or
not there are callbacks ready to invoke, but rcu_cleanup_after_idle()
rechecks this regardless.  This commit therefore uses the value returned
by rcu_try_advance_all_cbs() instead of making rcu_cleanup_after_idle()
do this recheck.

Reported-by: Tibor Billes <tbilles@gmx.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Tibor Billes <tbilles@gmx.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcutree_plugin.h