]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2022 09:46:31 +0000 (11:46 +0200)
commit55349296ba9b060d41129a074fc5d8414d83682f
treef65c9ab0687468fe66fa609ae8d4f7bab4b9d2a2
parent482583b75f5f04eeac0e91ad2676d7d1d4abb97d
random: rather than entropy_store abstraction, use global

commit 90ed1e67e896cc8040a523f8428fc02f9b164394 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/random.c
include/trace/events/random.h