diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-04-19 17:42:34 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-06-14 19:02:15 -0400 |
commit | 4e9a073f60367157fd64b65490654c39d4c44321 (patch) | |
tree | e2ed1946499a0aa271e9b46b69d05ef9ea0a1da3 /kernel/rcu | |
parent | f8cbdee99b161cb08c3fb55200941028c5fe25c8 (diff) |
torture: Remove CONFIG_RCU_TORTURE_TEST_RUNNABLE, simplify code
This commit removes CONFIG_RCU_TORTURE_TEST_RUNNABLE in favor of the
already-existing rcutorture.torture_runnable kernel boot parameter.
It also converts an #ifdef into IS_ENABLED(), saving a few lines of code.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r-- | kernel/rcu/rcutorture.c | 7 | ||||
-rw-r--r-- | kernel/rcu/tree_plugin.h | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 084a28a732eb..01cb57ff106f 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c | |||
@@ -182,12 +182,7 @@ static const char *rcu_torture_writer_state_getname(void) | |||
182 | return rcu_torture_writer_state_names[i]; | 182 | return rcu_torture_writer_state_names[i]; |
183 | } | 183 | } |
184 | 184 | ||
185 | #if defined(MODULE) || defined(CONFIG_RCU_TORTURE_TEST_RUNNABLE) | 185 | static int torture_runnable = IS_ENABLED(MODULE); |
186 | #define RCUTORTURE_RUNNABLE_INIT 1 | ||
187 | #else | ||
188 | #define RCUTORTURE_RUNNABLE_INIT 0 | ||
189 | #endif | ||
190 | static int torture_runnable = RCUTORTURE_RUNNABLE_INIT; | ||
191 | module_param(torture_runnable, int, 0444); | 186 | module_param(torture_runnable, int, 0444); |
192 | MODULE_PARM_DESC(torture_runnable, "Start rcutorture at boot"); | 187 | MODULE_PARM_DESC(torture_runnable, "Start rcutorture at boot"); |
193 | 188 | ||
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index ff1cd4e1188d..5b2d723e6568 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h | |||
@@ -79,8 +79,6 @@ static void __init rcu_bootup_announce_oddness(void) | |||
79 | pr_info("\tRCU dyntick-idle grace-period acceleration is enabled.\n"); | 79 | pr_info("\tRCU dyntick-idle grace-period acceleration is enabled.\n"); |
80 | if (IS_ENABLED(CONFIG_PROVE_RCU)) | 80 | if (IS_ENABLED(CONFIG_PROVE_RCU)) |
81 | pr_info("\tRCU lockdep checking is enabled.\n"); | 81 | pr_info("\tRCU lockdep checking is enabled.\n"); |
82 | if (IS_ENABLED(CONFIG_RCU_TORTURE_TEST_RUNNABLE)) | ||
83 | pr_info("\tRCU torture testing starts during boot.\n"); | ||
84 | if (RCU_NUM_LVLS >= 4) | 82 | if (RCU_NUM_LVLS >= 4) |
85 | pr_info("\tFour(or more)-level hierarchy is enabled.\n"); | 83 | pr_info("\tFour(or more)-level hierarchy is enabled.\n"); |
86 | if (RCU_FANOUT_LEAF != 16) | 84 | if (RCU_FANOUT_LEAF != 16) |