]> git.baikalelectronics.ru Git - kernel.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>
Mon, 30 May 2022 07:29:01 +0000 (09:29 +0200)
commit282607572e95500d2011fbee517863fd13697009
treef5c4ad2bb1b81c611f223ef483feb1daaefb34e3
parentd47b3448501b7d112d69a49b186262ad039d0ad7
random: cleanup poolinfo abstraction

commit 813cf635d0bd2fa6636e7a67bdcf7c1e77f6a55b 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