This series combines the two uses thus far identified for cpuhp in
random.c. v3 uses prepare instead of teardown. v4 guards the added
function with CONFIG_SMP, since it's not used on !CONFIG_SMP.
Jason A. Donenfeld (2):
random: set fast pool count to zero in cpuhp prepare
random: invalidate crngs and batches in cpuhp prepare
drivers/char/random.c | 47 ++++++++++++++++++++++++++------------
include/linux/cpuhotplug.h | 1 +
include/linux/random.h | 4 ++++
kernel/cpu.c | 6 +++++
4 files changed, 43 insertions(+), 15 deletions(-)
--
2.35.0