virtio: avoid modulus operation.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Jan 2012 05:14:43 +0000 (15:44 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Jan 2012 05:14:43 +0000 (15:44 +1030)
commit3b720b8c865098c49c1570b6b5c7832bcfa6e6c2
tree7580908e53fb78ddc20945075d7f25408a6325fb
parent41f0377f73039ca6fe97a469d1941a89cd9757f1
virtio: avoid modulus operation.

Since we know vq->vring.num is a power of 2, modulus is lazy (it's asserted
in vring_new_virtqueue()).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_ring.c