rcu: Round FAST_NO_HZ lazy timeout to nearest second
authorPaul E. McKenney <paul.mckenney@linaro.org>
Tue, 5 Jun 2012 03:45:10 +0000 (20:45 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 2 Jul 2012 19:34:42 +0000 (12:34 -0700)
commite84c48ae3024ac2f14ed1c3671e5ea37c60fb838
tree1fa778d1878c9cc79afe5b5687180a6b4e06d36d
parent28f8555364ef5b54b21251c5c8022109a70626e9
rcu: Round FAST_NO_HZ lazy timeout to nearest second

Currently, if several CPUs in the same package have all lazy RCU
callbacks, their wakeups will be uncorrelated.  If all the CPUs are in the
same power domain (as is often the case), this will result in unnecessary
power-ups of the package.  This commit therefore uses round_jiffies()
to round the timeouts to a second boundary, increasing the odds that
they can be coalesced with each other or with other timeouts.

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