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>
This commit is contained in:
Родитель
aaa693e3d8
Коммит
59da22a020
|
@ -2938,7 +2938,7 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
|
||||||
Set time (s) between CPU-hotplug operations, or
|
Set time (s) between CPU-hotplug operations, or
|
||||||
zero to disable CPU-hotplug testing.
|
zero to disable CPU-hotplug testing.
|
||||||
|
|
||||||
rcutorture.rcutorture_runnable= [BOOT]
|
rcutorture.torture_runnable= [BOOT]
|
||||||
Start rcutorture running at boot time.
|
Start rcutorture running at boot time.
|
||||||
|
|
||||||
rcutorture.shuffle_interval= [KNL]
|
rcutorture.shuffle_interval= [KNL]
|
||||||
|
|
|
@ -47,9 +47,6 @@
|
||||||
#include <asm/barrier.h>
|
#include <asm/barrier.h>
|
||||||
|
|
||||||
extern int rcu_expedited; /* for sysctl */
|
extern int rcu_expedited; /* for sysctl */
|
||||||
#ifdef CONFIG_RCU_TORTURE_TEST
|
|
||||||
extern int rcutorture_runnable; /* for sysctl */
|
|
||||||
#endif /* #ifdef CONFIG_RCU_TORTURE_TEST */
|
|
||||||
|
|
||||||
enum rcutorture_type {
|
enum rcutorture_type {
|
||||||
RCU_FLAVOR,
|
RCU_FLAVOR,
|
||||||
|
|
|
@ -168,9 +168,9 @@ static int rcu_torture_writer_state;
|
||||||
#else
|
#else
|
||||||
#define RCUTORTURE_RUNNABLE_INIT 0
|
#define RCUTORTURE_RUNNABLE_INIT 0
|
||||||
#endif
|
#endif
|
||||||
int rcutorture_runnable = RCUTORTURE_RUNNABLE_INIT;
|
static int torture_runnable = RCUTORTURE_RUNNABLE_INIT;
|
||||||
module_param(rcutorture_runnable, int, 0444);
|
module_param(torture_runnable, int, 0444);
|
||||||
MODULE_PARM_DESC(rcutorture_runnable, "Start rcutorture at boot");
|
MODULE_PARM_DESC(torture_runnable, "Start rcutorture at boot");
|
||||||
|
|
||||||
#if defined(CONFIG_RCU_BOOST) && !defined(CONFIG_HOTPLUG_CPU)
|
#if defined(CONFIG_RCU_BOOST) && !defined(CONFIG_HOTPLUG_CPU)
|
||||||
#define rcu_can_boost() 1
|
#define rcu_can_boost() 1
|
||||||
|
@ -1636,7 +1636,7 @@ rcu_torture_init(void)
|
||||||
RCUTORTURE_TASKS_OPS
|
RCUTORTURE_TASKS_OPS
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!torture_init_begin(torture_type, verbose, &rcutorture_runnable))
|
if (!torture_init_begin(torture_type, verbose, &torture_runnable))
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
|
||||||
/* Process args and tell the world that the torturer is on the job. */
|
/* Process args and tell the world that the torturer is on the job. */
|
||||||
|
|
|
@ -1055,15 +1055,6 @@ static struct ctl_table kern_table[] = {
|
||||||
.child = key_sysctls,
|
.child = key_sysctls,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_RCU_TORTURE_TEST
|
|
||||||
{
|
|
||||||
.procname = "rcutorture_runnable",
|
|
||||||
.data = &rcutorture_runnable,
|
|
||||||
.maxlen = sizeof(int),
|
|
||||||
.mode = 0644,
|
|
||||||
.proc_handler = proc_dointvec,
|
|
||||||
},
|
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_PERF_EVENTS
|
#ifdef CONFIG_PERF_EVENTS
|
||||||
/*
|
/*
|
||||||
* User-space scripts rely on the existence of this file
|
* User-space scripts rely on the existence of this file
|
||||||
|
|
|
@ -51,7 +51,7 @@ per_version_boot_params () {
|
||||||
`rcutorture_param_n_barrier_cbs "$1"` \
|
`rcutorture_param_n_barrier_cbs "$1"` \
|
||||||
rcutorture.stat_interval=15 \
|
rcutorture.stat_interval=15 \
|
||||||
rcutorture.shutdown_secs=$3 \
|
rcutorture.shutdown_secs=$3 \
|
||||||
rcutorture.rcutorture_runnable=1 \
|
rcutorture.torture_runnable=1 \
|
||||||
rcutorture.test_no_idle_hz=1 \
|
rcutorture.test_no_idle_hz=1 \
|
||||||
rcutorture.verbose=1
|
rcutorture.verbose=1
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче