hwrng: virtio-rng - Convert to new API
authorIan Molton <ian.molton@collabora.co.uk>
Tue, 1 Dec 2009 07:26:33 +0000 (15:26 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 1 Dec 2009 07:26:33 +0000 (15:26 +0800)
commitbb347d98079a547e80bd4722dee1de61e4dca0e8
tree79fc5a98ce9bca6d47385e6fef0fd4907929a0e8
parent838632438145ac6863377eb12d8b8eef9c55d288
hwrng: virtio-rng - Convert to new API

This patch converts virtio-rng to the new hw_rng API.

In the process it fixes a previously untriggered buffering bug where the
buffer is not drained correctly if it has a non-multiple-of-4 length.

Performance has improved under qemu-kvm testing also.

Signed-off-by: Ian Molton <ian.molton@collabora.co.uk>
Acked-by: Matt Mackall <mpm@selenic.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/virtio-rng.c