random: rather than entropy_store abstraction, use global
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 12 Jan 2022 16:18:08 +0000 (17:18 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 17 Jan 2022 16:25:32 +0000 (17:25 +0100)
commit89596ce2adbec0c459dd01b9caba4213c82136f2
tree1721f877e1e741154de86b8b3cc70fbc1b90d7fe
parent6db4807edb02a8aca66a428d408a6108cec065db
random: rather than entropy_store abstraction, use global

Originally, the RNG used several pools, so having things abstracted out
over a generic entropy_store object made sense. These days, there's only
one input pool, and then an uneven mix of usage via the abstraction and
usage via &input_pool. Rather than this uneasy mixture, just get rid of
the abstraction entirely and have things always use the global. This
simplifies the code and makes reading it a bit easier.

Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/char/random.c
include/trace/events/random.h