diff options
-rw-r--r-- | Documentation/kernel-parameters.txt | 2 | ||||
-rw-r--r-- | include/linux/rcupdate.h | 3 | ||||
-rw-r--r-- | kernel/rcu/rcutorture.c | 8 | ||||
-rw-r--r-- | kernel/sysctl.c | 9 | ||||
-rw-r--r-- | tools/testing/selftests/rcutorture/configs/rcu/ver_functions.sh | 2 |
5 files changed, 6 insertions, 18 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index e1147bc62633..7aba744afcde 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -2938,7 +2938,7 @@ bytes respectively. Such letter suffixes can also be entirely omitted. | |||
2938 | Set time (s) between CPU-hotplug operations, or | 2938 | Set time (s) between CPU-hotplug operations, or |
2939 | zero to disable CPU-hotplug testing. | 2939 | zero to disable CPU-hotplug testing. |
2940 | 2940 | ||
2941 | rcutorture.rcutorture_runnable= [BOOT] | 2941 | rcutorture.torture_runnable= [BOOT] |
2942 | Start rcutorture running at boot time. | 2942 | Start rcutorture running at boot time. |
2943 | 2943 | ||
2944 | rcutorture.shuffle_interval= [KNL] | 2944 | rcutorture.shuffle_interval= [KNL] |
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 5cafd60c1ee4..a4a819ffb2d1 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h | |||
@@ -47,9 +47,6 @@ | |||
47 | #include <asm/barrier.h> | 47 | #include <asm/barrier.h> |
48 | 48 | ||
49 | extern int rcu_expedited; /* for sysctl */ | 49 | extern int rcu_expedited; /* for sysctl */ |
50 | #ifdef CONFIG_RCU_TORTURE_TEST | ||
51 | extern int rcutorture_runnable; /* for sysctl */ | ||
52 | #endif /* #ifdef CONFIG_RCU_TORTURE_TEST */ | ||
53 | 50 | ||
54 | enum rcutorture_type { | 51 | enum rcutorture_type { |
55 | RCU_FLAVOR, | 52 | RCU_FLAVOR, |
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 |
diff --git a/tools/testing/selftests/rcutorture/configs/rcu/ver_functions.sh b/tools/testing/selftests/rcutorture/configs/rcu/ver_functions.sh index 8977d8d31b19..ffb85ed786fa 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/ver_functions.sh +++ b/tools/testing/selftests/rcutorture/configs/rcu/ver_functions.sh | |||
@@ -51,7 +51,7 @@ per_version_boot_params () { | |||
51 | `rcutorture_param_n_barrier_cbs "$1"` \ | 51 | `rcutorture_param_n_barrier_cbs "$1"` \ |
52 | rcutorture.stat_interval=15 \ | 52 | rcutorture.stat_interval=15 \ |
53 | rcutorture.shutdown_secs=$3 \ | 53 | rcutorture.shutdown_secs=$3 \ |
54 | rcutorture.rcutorture_runnable=1 \ | 54 | rcutorture.torture_runnable=1 \ |
55 | rcutorture.test_no_idle_hz=1 \ | 55 | rcutorture.test_no_idle_hz=1 \ |
56 | rcutorture.verbose=1 | 56 | rcutorture.verbose=1 |
57 | } | 57 | } |