]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
hwrng: add per-device entropy derating
authorTorsten Duwe <duwe@lst.de>
Sun, 15 Jun 2014 03:48:41 +0000 (23:48 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 15 Jul 2014 08:49:40 +0000 (04:49 -0400)
commit0f734e6e768b4b66737b3d3e13f1769a12ecff86
tree637eb77455b97fa9385a442a25406443a6bceda7
parentbe4000bc4644d027c519b6361f5ae3bbfc52c347
hwrng: add per-device entropy derating

This patch introduces a derating factor to struct hwrng for
the random bits going into the kernel input pool, and a common
default derating for drivers which do not specify one.

Signed-off-by: Torsten Duwe <duwe@suse.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Acked-by: H. Peter Anvin <hpa@zytor.com>
drivers/char/hw_random/core.c
include/linux/hw_random.h