aboutsummaryrefslogtreecommitdiff
path: root/Documentation/scsi
diff options
context:
space:
mode:
authorJason A. Donenfeld2022-09-20 16:12:00 +0200
committerJason A. Donenfeld2022-09-23 12:27:57 +0200
commitd775335e350fc07e1322960ee291dc9079ab938e (patch)
tree9459588ff43af5215f615cf945fd2db7fbefe43a /Documentation/scsi
parent745558f9588551b1fef9609d165e239bce30d3e8 (diff)
random: throttle hwrng writes if no entropy is credited
If a hwrng source does not provide an entropy estimate, it currently does not contribute at all to the CRNG. In order to help fix this, in case add_hwgenerator_randomness() is called with the entropy parameter set to zero, go to sleep until one reseed interval has passed. While the hwrng thread currently only runs under conditions where this is non-zero, this change is not harmful and prepares for future updates to the hwrng core. Cc: Herbert Xu <herbert@gondor.apana.org.au> Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'Documentation/scsi')
0 files changed, 0 insertions, 0 deletions