]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Control grace-period duration from sysfs
authorPaul E. McKenney <paul.mckenney@linaro.org>
Wed, 27 Jun 2012 03:45:57 +0000 (20:45 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 23 Jul 2012 15:30:23 +0000 (08:30 -0700)
commit20e2cee2514144ffe410540996d5faa03c524532
tree01a00caa4035a816922dcf423c0dd49751760f13
parentdaa5d37ff51b42c16e2e2284850d0f16847d8255
rcu: Control grace-period duration from sysfs

Some uses of RCU benefit from shorter grace periods, while others benefit
more from the greater efficiency provided by longer grace periods.
Therefore, this commit allows the durations to be controlled from sysfs.
There are two sysfs parameters, one named "jiffies_till_first_fqs" that
specifies the delay in jiffies from the end of grace-period initialization
until the first attempt to force quiescent states, and the other named
"jiffies_till_next_fqs" that specifies the delay (again in jiffies)
between subsequent attempts to force quiescent states.  They both default
to three jiffies, which is compatible with the old hard-coded behavior.

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Documentation/kernel-parameters.txt
kernel/rcutree.c