diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-09-12 13:36:15 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-09-16 16:41:44 -0400 |
commit | 59da22a02032cf1a069ec431f93d403b321ff6b4 (patch) | |
tree | 17c5b7ae5156b1336213129534af43d481340280 /kernel | |
parent | aaa693e3d8030e4cc531c71facb650ae0880f2fb (diff) |
rcutorture: Rename rcutorture_runnable parameter
This commit changes rcutorture_runnable to torture_runnable, which is
consistent with the names of the other parameters and is a bit shorter
as well.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rcu/rcutorture.c | 8 | ||||
-rw-r--r-- | kernel/sysctl.c | 9 |
2 files changed, 4 insertions, 13 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 04c4b5afb759..240fa9094f83 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c | |||
@@ -168,9 +168,9 @@ static int rcu_torture_writer_state; | |||
168 | #else | 168 | #else |
169 | #define RCUTORTURE_RUNNABLE_INIT 0 | 169 | #define RCUTORTURE_RUNNABLE_INIT 0 |
170 | #endif | 170 | #endif |
171 | int rcutorture_runnable = RCUTORTURE_RUNNABLE_INIT; | 171 | static int torture_runnable = RCUTORTURE_RUNNABLE_INIT; |
172 | module_param(rcutorture_runnable, int, 0444); | 172 | module_param(torture_runnable, int, 0444); |
173 | MODULE_PARM_DESC(rcutorture_runnable, "Start rcutorture at boot"); | 173 | MODULE_PARM_DESC(torture_runnable, "Start rcutorture at boot"); |
174 | 174 | ||
175 | #if defined(CONFIG_RCU_BOOST) && !defined(CONFIG_HOTPLUG_CPU) | 175 | #if defined(CONFIG_RCU_BOOST) && !defined(CONFIG_HOTPLUG_CPU) |
176 | #define rcu_can_boost() 1 | 176 | #define rcu_can_boost() 1 |
@@ -1636,7 +1636,7 @@ rcu_torture_init(void) | |||
1636 | RCUTORTURE_TASKS_OPS | 1636 | RCUTORTURE_TASKS_OPS |
1637 | }; | 1637 | }; |
1638 | 1638 | ||
1639 | if (!torture_init_begin(torture_type, verbose, &rcutorture_runnable)) | 1639 | if (!torture_init_begin(torture_type, verbose, &torture_runnable)) |
1640 | return -EBUSY; | 1640 | return -EBUSY; |
1641 | 1641 | ||
1642 | /* Process args and tell the world that the torturer is on the job. */ | 1642 | /* Process args and tell the world that the torturer is on the job. */ |
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 75875a741b5e..ab456664609d 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -1055,15 +1055,6 @@ static struct ctl_table kern_table[] = { | |||
1055 | .child = key_sysctls, | 1055 | .child = key_sysctls, |
1056 | }, | 1056 | }, |
1057 | #endif | 1057 | #endif |
1058 | #ifdef CONFIG_RCU_TORTURE_TEST | ||
1059 | { | ||
1060 | .procname = "rcutorture_runnable", | ||
1061 | .data = &rcutorture_runnable, | ||
1062 | .maxlen = sizeof(int), | ||
1063 | .mode = 0644, | ||
1064 | .proc_handler = proc_dointvec, | ||
1065 | }, | ||
1066 | #endif | ||
1067 | #ifdef CONFIG_PERF_EVENTS | 1058 | #ifdef CONFIG_PERF_EVENTS |
1068 | /* | 1059 | /* |
1069 | * User-space scripts rely on the existence of this file | 1060 | * User-space scripts rely on the existence of this file |