diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-05-03 18:51:55 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-06-09 03:52:28 +0200 |
commit | 25c36329a30c8cac090effe1fbae9bb916fa95fe (patch) | |
tree | 567b35ea1994c7ffe4ac3224a86c0c475d87a192 /kernel/rcu/rcuperf.c | |
parent | rcu: Move rcu_expedited and rcu_normal externs from rcupdate.h (diff) | |
download | linux-25c36329a30c8cac090effe1fbae9bb916fa95fe.tar.xz linux-25c36329a30c8cac090effe1fbae9bb916fa95fe.zip |
rcu: Move expediting-related access/control out of rcupdate.h
The rcu_gp_is_normal(), rcu_gp_is_expedited(), rcu_expedite_gp(), and
rcu_unexpedite_gp() functions are intended only for use within the
RCU implementation itself -- the sysfs access is what should be used
outside of RCU. This commit therefore moves the declarations for
these functions to kernel/rcu/rcu.h, and also includes this file into
kernel/rcu/rcutorture.c and kernel/rcu/rcuperf.c. This also has the
beneficial effect of shrinking rcupdate.c a bit.
Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/rcuperf.c')
-rw-r--r-- | kernel/rcu/rcuperf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rcu/rcuperf.c b/kernel/rcu/rcuperf.c index d80f11d9f8bd..3cc18110b612 100644 --- a/kernel/rcu/rcuperf.c +++ b/kernel/rcu/rcuperf.c @@ -48,6 +48,8 @@ #include <linux/torture.h> #include <linux/vmalloc.h> +#include "rcu.h" + MODULE_LICENSE("GPL"); MODULE_AUTHOR("Paul E. McKenney <paulmck@linux.vnet.ibm.com>"); |