]> git.baikalelectronics.ru Git - kernel.git/commit
torture: Make --cpus override idleness calculations
authorPaul E. McKenney <paulmck@linux.ibm.com>
Sun, 12 May 2019 00:59:52 +0000 (17:59 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 28 May 2019 16:06:09 +0000 (09:06 -0700)
commit0bfb2e7963b7f60e33cd0210b0e2ae824db28265
tree6f499bfc8972c43b1d90e218b8f239bdbc636432
parent9625929f75992fdd038572c32e8d8d065b814db2
torture: Make --cpus override idleness calculations

Currently, rcutorture will use relatively few CPUs to build the kernel
on a busy system, which is often as it should be.  However, if the user
has used the --cpus argument to dedicate a specified number of CPUs to
this torture test, it would be good if the kernel build also made use
of them.  This commit therefore changes the cpus2use.sh script to use
--cpus when specified and to do the idleness calculations otherwise.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
tools/testing/selftests/rcutorture/bin/cpus2use.sh
tools/testing/selftests/rcutorture/bin/kvm.sh