locktorture: Allow CPU-hotplug to be disabled via --bootargs
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 23 Jan 2020 20:32:31 +0000 (12:32 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 20 Feb 2020 23:59:59 +0000 (15:59 -0800)
commit7aabb6f839622bc96a425d93f3f7373167be1e19
tree767cc8373d2eae1f81ef419a19802999799404e9
parent80c503e0e68fbe271680ab48f0fe29bc034b01b7
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 <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/functions.sh