summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/marvell
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2022-02-13 21:46:31 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2022-02-18 16:21:11 +1100
commit8208285632f950d2bfd489b10148e05134b7119e (patch)
tree27de970b6b7f8166b671809dee24c49ec2ea3448 /drivers/crypto/marvell
parentf0fb6953b39e015acfecb8b5158642614e6ce364 (diff)
downloadlinux-stable-8208285632f950d2bfd489b10148e05134b7119e.tar.gz
linux-stable-8208285632f950d2bfd489b10148e05134b7119e.tar.bz2
linux-stable-8208285632f950d2bfd489b10148e05134b7119e.zip
hwrng: core - introduce rng_quality sysfs attribute
The rng_quality sysfs attribute returns the quality setting for the currently active hw_random device, in entropy bits per 1024 bits of input. Storing a value between 0 and 1024 to this file updates this estimate accordingly. Based on the updates to the quality setting, the rngd kernel thread may be stopped (if no hw_random device is trusted to return entropy), may be started (if the quality setting is increased from zero), or may use a different hw_random source (if that has higher quality output). Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/marvell')
0 files changed, 0 insertions, 0 deletions