Skip to content

Commit 31742a5

Browse files
paulmckrcuFrederic Weisbecker
authored andcommitted
locktorture: Alphabetize torture_param() entries
There are getting to be too many module parameters for a random list to be comfortable, so this commit alphabetizes the list. Strictly code motion. Signed-off-by: Paul E. McKenney <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]>
1 parent cca42bd commit 31742a5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

kernel/locking/locktorture.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@
3333
MODULE_LICENSE("GPL");
3434
MODULE_AUTHOR("Paul E. McKenney <[email protected]>");
3535

36-
torture_param(int, nwriters_stress, -1, "Number of write-locking stress-test threads");
37-
torture_param(int, nreaders_stress, -1, "Number of read-locking stress-test threads");
3836
torture_param(int, long_hold, 100, "Do occasional long hold of lock (ms), 0=disable");
37+
torture_param(int, nested_locks, 0, "Number of nested locks (max = 8)");
38+
torture_param(int, nreaders_stress, -1, "Number of read-locking stress-test threads");
39+
torture_param(int, nwriters_stress, -1, "Number of write-locking stress-test threads");
3940
torture_param(int, onoff_holdoff, 0, "Time after boot before CPU hotplugs (s)");
4041
torture_param(int, onoff_interval, 0, "Time between CPU hotplugs (s), 0=disable");
42+
torture_param(int, rt_boost, 2,
43+
"Do periodic rt-boost. 0=Disable, 1=Only for rt_mutex, 2=For all lock types.");
44+
torture_param(int, rt_boost_factor, 50, "A factor determining how often rt-boost happens.");
4145
torture_param(int, shuffle_interval, 3, "Number of jiffies between shuffles, 0=disable");
4246
torture_param(int, shutdown_secs, 0, "Shutdown time (j), <= zero to disable.");
4347
torture_param(int, stat_interval, 60, "Number of seconds between stats printk()s");
4448
torture_param(int, stutter, 5, "Number of jiffies to run/halt test, 0=disable");
45-
torture_param(int, rt_boost, 2,
46-
"Do periodic rt-boost. 0=Disable, 1=Only for rt_mutex, 2=For all lock types.");
47-
torture_param(int, rt_boost_factor, 50, "A factor determining how often rt-boost happens.");
4849
torture_param(int, writer_fifo, 0, "Run writers at sched_set_fifo() priority");
4950
torture_param(int, verbose, 1, "Enable verbose debugging printk()s");
50-
torture_param(int, nested_locks, 0, "Number of nested locks (max = 8)");
5151
/* Going much higher trips "BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!" errors */
5252
#define MAX_NESTED_LOCKS 8
5353

0 commit comments

Comments
 (0)