tools/virtio/ringtest: fix run-on-all.sh to work without /dev/cpu
authorMike Rapoport <rppt@linux.vnet.ibm.com>
Wed, 4 May 2016 10:15:50 +0000 (13:15 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 6 Jun 2016 10:00:11 +0000 (13:00 +0300)
commitef1b144d23dbd745fd655b7d0a70212fcc8d0121
treefd1a0f8127762337be66d51ef96e3e508cc05749
parent3b220cf867ce6881c7f671b27564c4cc13d8c4b8
tools/virtio/ringtest: fix run-on-all.sh to work without /dev/cpu

/dev/cpu is only available on x86 with certain modules (e.g. msr) enabled.
Using lscpu to get processors count is more portable.

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tools/virtio/ringtest/run-on-all.sh