]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Sat, 25 Jun 2022 09:46:31 +0000 (11:46 +0200)
commit45b1bfbd54bc1849cd95655317d86b73764ebfe9
tree8d05c7abe9c979ddfadf5f31340e11844987c5d9
parentda31a02410effc095f1a9ed826f4cf67a2179782
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