virtio: rng: s3/s4 support
authorAmit Shah <amit.shah@redhat.com>
Mon, 28 May 2012 06:48:43 +0000 (12:18 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 30 Jul 2012 04:00:50 +0000 (13:30 +0930)
commit0bc1a2ef19b45bb23617b203bc631b44609f17ba
tree6e14cc4b5fb1b50d1acb815ddc3b9ebbe89cfd00
parent178d855e7810deecb7fa96afdf82ec45b0284233
virtio: rng: s3/s4 support

Unregister from the hwrng interface and remove the vq before entering
the S3 or S4 states.  Add the vq and re-register with hwrng on restore.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/hw_random/virtio-rng.c