]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Prevent early boot set_need_resched() from __rcu_pending()
authorPaul E. McKenney <paul.mckenney@linaro.org>
Thu, 4 Aug 2011 13:59:03 +0000 (06:59 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 6 Sep 2011 18:27:05 +0000 (11:27 -0700)
commitbcb088a30eb09a729264469ddd1554b16e7432ae
tree1c1be95dd148fcf774e5c8309935b2ca1225da79
parent5f8a86be25013fab486e3ad6a7e321bce686912f
rcu: Prevent early boot set_need_resched() from __rcu_pending()

There isn't a whole lot of point in poking the scheduler before there
are other tasks to switch to.  This commit therefore adds a check
for rcu_scheduler_fully_active in __rcu_pending() to suppress any
pre-scheduler calls to set_need_resched().  The downside of this approach
is additional runtime overhead in a reasonably hot code path.

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree.c