]> git.baikalelectronics.ru Git - kernel.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)
committerFrederic Weisbecker <fweisbec@gmail.com>
Wed, 26 Sep 2012 13:44:02 +0000 (15:44 +0200)
commit7ded7d11fc0b307ce6a6d5877110b41ba9d09cdb
tree8560ac17f9a19f2f03c47fed1eb3e02011a6205f
parenta5d81572299bc0614afc1b162c6d2047be23d1ae
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