]> 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)
commitdf108bbe5d8fd7a7e4996b217c3f4d2375019ec1
tree68fb9a77194451d4b78fb5a87ee2ff2974ad36a8
parent4af0d37376314768d09cb5a50b66504807d6245d
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: 0d45f1d5b7cb ("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