Skip to content

Commit 7aabb6f

Browse files
committed
locktorture: Allow CPU-hotplug to be disabled via --bootargs
The bootparam_hotplug_cpu() bash function was checking for CPU-hotplug kernel-boot parameters from --bootargs, but that check was specific to rcutorture ("rcutorture\.onoff_"). This commit therefore makes this check also work for locktorture ("torture\.onoff_"). Note that rcuperf does not do CPU-hotplug operations, so it is not necessary to make a similar change for rcuperf. Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 80c503e commit 7aabb6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/rcutorture/bin/functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Returns 1 if the specified boot-parameter string tells rcutorture to
1313
# test CPU-hotplug operations.
1414
bootparam_hotplug_cpu () {
15-
echo "$1" | grep -q "rcutorture\.onoff_"
15+
echo "$1" | grep -q "torture\.onoff_"
1616
}
1717

1818
# checkarg --argname argtype $# arg mustmatch cannotmatch

0 commit comments

Comments
 (0)