]> git.baikalelectronics.ru Git - kernel.git/commit
random: clear new batches when bringing new CPUs online
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 5 Oct 2022 10:54:38 +0000 (12:54 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 6 Oct 2022 15:35:55 +0000 (09:35 -0600)
commitc42cc3b72c2b72d4b43322c277011f9131695130
tree68fb9a77194451d4b78fb5a87ee2ff2974ad36a8
parent6a06bfe57cb60389c0622dd7024d9231f0e4d1c0
random: clear new batches when bringing new CPUs online

The commit that added the new get_random_{u8,u16}() functions neglected
to update the code that clears the batches when bringing up a new CPU.
It also forgot a few comments and helper defines, so add those in too.

Fixes: a31c9051f066 ("random: add 8-bit and 16-bit batches")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/char/random.c
include/linux/random.h