]> 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>
Wed, 10 Aug 2011 02:28:44 +0000 (19:28 -0700)
commitc75e213017a71d1deee92a6abb990cb31fcbc40c
tree4c081c3cfbeb13bb6bfafd6cf9f4703726527cc8
parentcaf5b32a9fe73165cb9e1db8a27f34d2ad9d62e6
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