hwrng: create filler thread
This can be viewed as the in-kernel equivalent of hwrngd; like FUSE it is a good thing to have a mechanism in user land, but for some reasons (simplicity, secrecy, integrity, speed) it may be better to have it in kernel space. This patch creates a thread once a hwrng registers, and uses the previously established add_hwgenerator_randomness() to feed its data to the input pool as long as needed. A derating factor is used to bias the entropy estimation and to disable this mechanism entirely when set to zero. Change-Id: I2bda706d8791e8e7016d89e3df4c5f0339ff321c 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> Git-commit: be4000bc4644d027c519b6361f5ae3bbfc52c347 Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git Signed-off-by:
Stephen Boyd <sboyd@codeaurora.org>
Loading
Please register or sign in to comment