torture: Make kvm.sh include --kconfig arguments in CPU calculation
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 24 Nov 2020 21:12:13 +0000 (13:12 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 4 Jan 2021 22:01:22 +0000 (14:01 -0800)
commit22bf64cc94832a3b047a1412a4ad0f7d9bd6cd8b
treec681d2e6617663301f73d512f40915126ed99edf
parent23239fc075d60a942101227c42353b5ced804269
torture: Make kvm.sh include --kconfig arguments in CPU calculation

Currently, passing something like "--kconfig CONFIG_NR_CPUS=2" to kvm.sh
has no effect on scenario scheduling.  For scenarios that do not specify
the number of CPUs, this can result in kvm.sh wastefully scheduling only
one scenario at a time even when the --kconfig argument would allow
a number to be run concurrently.  This commit therefore makes kvm.sh
consider the --kconfig arguments when scheduling scenarios across the
available CPUs.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/kvm.sh