]> asedeno.scripts.mit.edu Git - linux.git/commit
torture: Bring any extra CPUs online during kernel startup
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 21 Aug 2018 22:27:16 +0000 (15:27 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Sat, 1 Dec 2018 20:45:32 +0000 (12:45 -0800)
commit28cf5952f56005325f269ccfe402a880cd741189
treeaf1893d5a12f1fb34ffa4d96b7d41fcf0fe9dab2
parent4871848531af1d62f30032bfb872c43b9afe03ad
torture: Bring any extra CPUs online during kernel startup

Currently, the torture scripts rely on the initrd/init script to bring
any extra CPUs online, for example, in the case where the kernel and
qemu have different ideas about how many CPUs are present.  This works,
but is an unnecessary dependency on initrd, which needs to vary depending
on the distro.  This commit therefore causes torture_onoff() to check
for additional CPUs, attempting to bring any found online. Errors are
ignored, just as they are by the initrd/init script.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/torture.c