rcu: Bind RCU grace-period kthreads if NO_HZ_FULL
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 1 Apr 2014 18:20:36 +0000 (11:20 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 29 Apr 2014 15:45:19 +0000 (08:45 -0700)
commit5057f55e543b7859cfd26bc281291795eac93f8a
tree37cf522d549037e6e31d57159d8ab7668e085715
parent71a9b26963f8c2d0df6f782e2b29ccefc22d4fba
rcu: Bind RCU grace-period kthreads if NO_HZ_FULL

Currently, RCU binds the grace-period kthreads to the timekeeping
CPU only if CONFIG_NO_HZ_FULL_SYSIDLE=y.  This means that these
kthreads must be bound manually when CONFIG_NO_HZ_FULL_SYSIDLE=n and
CONFIG_NO_HZ_FULL=y: Otherwise, these kthreads will induce OS jitter on
random CPUs.  Given that we are trying to reduce the amount of manual
tweaking required to make CONFIG_NO_HZ_FULL=y work nicely, this commit
makes this binding happen when CONFIG_NO_HZ_FULL=y, even in cases where
CONFIG_NO_HZ_FULL_SYSIDLE=n.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcu/tree_plugin.h