]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio: avoid modulus operation.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 22 Nov 2011 00:08:59 +0000 (11:08 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 22 Nov 2011 00:08:59 +0000 (11:08 +1100)
commit74388b969905446408dc8f432af01c144bfb35de
tree49e239f2122c92cc0d9d092374063236d47f234c
parent36668459f9a1b47ff2e432ca36476a7b612e9b63
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