]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Make RCU_FAST_NO_HZ handle adaptive ticks
authorPaul E. McKenney <paul.mckenney@linaro.org>
Thu, 28 Jun 2012 19:33:51 +0000 (12:33 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 18 Sep 2012 23:27:30 +0000 (16:27 -0700)
commita78749dcd0580ebde88c941d21addc049de9ca8b
tree87c4092010c93de62c7833be7d3c5a497501b661
parent3401af8e8cbd6ca9eb79eea186687a07a02a999a
rcu: Make RCU_FAST_NO_HZ handle adaptive ticks

The current implementation of RCU_FAST_NO_HZ tries reasonably hard to rid
the current CPU of RCU callbacks.  This is appropriate when the CPU is
entering idle, where it doesn't have much useful to do anyway, but is most
definitely not what you want when transitioning to user-mode execution.
This commit therefore detects the adaptive-tick case, and refrains from
burning CPU time getting rid of RCU callbacks in that case.

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