Skip to content

Commit d065eac

Browse files
committed
locktorture: Remove reference to nonexistent Kconfig parameter
The locktorture module references CONFIG_LOCK_TORTURE_TEST_RUNNABLE, which does not exist. Which is a good thing, because otherwise randconfig testing could enable both rcutorture and locktorture concurrently, which the torture tests are not set up for. This commit therefore removes the reference, so that test is runnable immediately only when inserted as a module. Reported-by: Paul Bolle <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Reviewed-by: Josh Triplett <[email protected]>
1 parent 48d684f commit d065eac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/locking/locktorture.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ struct lock_writer_stress_stats {
8282
};
8383
static struct lock_writer_stress_stats *lwsa;
8484

85-
#if defined(MODULE) || defined(CONFIG_LOCK_TORTURE_TEST_RUNNABLE)
85+
#if defined(MODULE)
8686
#define LOCKTORTURE_RUNNABLE_INIT 1
8787
#else
8888
#define LOCKTORTURE_RUNNABLE_INIT 0
8989
#endif
9090
int locktorture_runnable = LOCKTORTURE_RUNNABLE_INIT;
9191
module_param(locktorture_runnable, int, 0444);
92-
MODULE_PARM_DESC(locktorture_runnable, "Start locktorture at boot");
92+
MODULE_PARM_DESC(locktorture_runnable, "Start locktorture at module init");
9393

9494
/* Forward reference. */
9595
static void lock_torture_cleanup(void);

0 commit comments

Comments
 (0)