]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio: add debugging if driver doesn't kick.
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 4 Dec 2011 23:33:30 +0000 (10:33 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 4 Dec 2011 23:33:30 +0000 (10:33 +1100)
commita34cf9dee658e8b806b13e8d1565fecaedf665f6
treed628309914bddefbece122478033ef4435e204cc
parenta9b029b8a831b793642d6486dabc734fa06c190d
virtio: add debugging if driver doesn't kick.

Under the existing #ifdef DEBUG, check that they don't have more than
1/10 of a second between an add_buf() and a
virtqueue_notify()/virtqueue_kick_prepare() call.

We could get false positives on a really busy system, but good for
development.

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