Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 94469927 authored by Torsten Duwe's avatar Torsten Duwe Committed by Stephen Boyd
Browse files

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: default avatarTorsten Duwe <duwe@suse.de>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Acked-by: default avatarH. 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: default avatarStephen Boyd <sboyd@codeaurora.org>
parent ca66fce5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment