]> git.baikalelectronics.ru Git - kernel.git/commit
random: remove unused OUTPUT_POOL constants
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 13 Jan 2022 14:51:06 +0000 (15:51 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 18 Jan 2022 12:03:56 +0000 (13:03 +0100)
commitcfa352496bf0d48fe36f39372efeaf19708bac3a
treec93024bec8c66cc703b9446828fd038233244279
parent6ea16b04d7c1970fbfa10ec2755db12ecf1eb1e0
random: remove unused OUTPUT_POOL constants

We no longer have an output pool. Rather, we have just a wakeup bits
threshold for /dev/random reads, presumably so that processes don't
hang. This value, random_write_wakeup_bits, is configurable anyway. So
all the no longer usefully named OUTPUT_POOL constants were doing was
setting a reasonable default for random_write_wakeup_bits. This commit
gets rid of the constants and just puts it all in the default value of
random_write_wakeup_bits.

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