]> 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>
Wed, 5 Sep 2012 18:58:53 +0000 (11:58 -0700)
commitfe4789a9f0b158b4295b8b4c0a929cced374d586
tree4eadc4fa6c36f201158173f181addc915bd354ae
parent9d6cfe37c9804ac7c9718ab5dc1de3ef4c74aa5e
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>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Documentation/kernel-parameters.txt
kernel/rcutree.c