1
0
Fork 0
remarkable-linux/tools/virtio
Halil Pasic 12274f2c17 tools/virtio/ringtest: fix run-on-all.sh for offline cpus
commit 21f5eda9b8 upstream.

Since ef1b144d ("tools/virtio/ringtest: fix run-on-all.sh to work
without /dev/cpu") run-on-all.sh uses seq 0 $HOST_AFFINITY as the list
of ids of the CPUs to run the command on (assuming ids of online CPUs
are consecutive and start from 0), where $HOST_AFFINITY is the highest
CPU id in the system previously determined using lscpu.  This can fail
on systems with offline CPUs.

Instead let's use lscpu to determine the list of online CPUs.

Signed-off-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Fixes: ef1b144d ("tools/virtio/ringtest: fix run-on-all.sh to work without
/dev/cpu")
Reviewed-by: Sascha Silbe <silbe@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-26 08:24:46 +01:00
..
asm tools/virtio: use virt_xxx barriers 2016-01-26 10:18:29 +02:00
linux tools/virtio: fix READ_ONCE() 2017-01-15 13:42:56 +01:00
ringtest tools/virtio/ringtest: fix run-on-all.sh for offline cpus 2017-01-26 08:24:46 +01:00
uapi/linux tools/virtio: more stubs 2014-12-15 23:49:19 +02:00
vhost_test vhost test module 2010-12-09 16:00:21 +02:00
virtio-trace tools: Fix pthread flag for Makefile of trace-agent used by virtio-trace 2012-09-28 15:05:13 +09:30
.gitignore virtio tools: add .gitignore 2013-07-15 11:18:31 +09:30
Makefile tools/virtio: propagate V=X to kernel build 2015-09-16 12:48:07 +03:00
virtio_test.c tools/virtio: add virtio 1.0 in virtio_test 2014-12-15 23:49:22 +02:00
vringh_test.c tools/virtio: add virtio 1.0 in vringh_test 2014-12-15 23:49:22 +02:00