Browse Source

Merge branch 'rng-queue' of git://git.kernel.org/pub/scm/linux/kernel/git/amit/virtio

Pull virtio-rng update from Amit Shah:
 "Add derating factor for use by hwrng core

  Sending directly to you with the commit log changes Ted Ts'o pointed
  out.  Not sure if Rusty's back after his travel, but this already has
  his s-o-b"

* 'rng-queue' of git://git.kernel.org/pub/scm/linux/kernel/git/amit/virtio:
  virtio: rng: add derating factor for use by hwrng core
Linus Torvalds 11 years ago
parent
commit
90c8096914
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/char/hw_random/virtio-rng.c

+ 1 - 0
drivers/char/hw_random/virtio-rng.c

@@ -116,6 +116,7 @@ static int probe_common(struct virtio_device *vdev)
 		.cleanup = virtio_cleanup,
 		.cleanup = virtio_cleanup,
 		.priv = (unsigned long)vi,
 		.priv = (unsigned long)vi,
 		.name = vi->name,
 		.name = vi->name,
+		.quality = 1000,
 	};
 	};
 	vdev->priv = vi;
 	vdev->priv = vi;