random: cleanup poolinfo abstraction
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 9 Jan 2022 16:32:02 +0000 (17:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 May 2022 07:29:01 +0000 (09:29 +0200)
commit4330c485f92cde74756ce9b9a91ebb160385aa1e
treef5c4ad2bb1b81c611f223ef483feb1daaefb34e3
parent250bda5d0505927ca8648254752ee298cbaf9623
random: cleanup poolinfo abstraction

commit 91ec0fe138f107232cb36bc6112211db37cb5306 upstream.

Now that we're only using one polynomial, we can cleanup its
representation into constants, instead of passing around pointers
dynamically to select different polynomials. This improves the codegen
and makes the code a bit more straightforward.

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