aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <[email protected]>2022-05-15 15:06:18 +0200
committerJason A. Donenfeld <[email protected]>2022-05-19 16:54:15 +0200
commit6701de6c51c172b5de5633374479503c81fefc0b (patch)
tree5abaea08a755fac6972811c2ff2b098fdcbe6d1a /lib/mpi/mpi-sub-ui.c
parent248561ad25a8ba4ecbc7df42f9a5a82fd5fbb4f6 (diff)
random: remove mostly unused async readiness notifier
The register_random_ready_notifier() notifier is somewhat complicated, and was already recently rewritten to use notifier blocks. It is only used now by one consumer in the kernel, vsprintf.c, for which the async mechanism is really overly complex for what it actually needs. This commit removes register_random_ready_notifier() and unregister_random_ ready_notifier(), because it just adds complication with little utility, and changes vsprintf.c to just check on `!rng_is_initialized() && !rng_has_arch_random()`, which will eventually be true. Performance- wise, that code was already using a static branch, so there's basically no overhead at all to this change. Cc: Steven Rostedt <[email protected]> Cc: Sergey Senozhatsky <[email protected]> Acked-by: Petr Mladek <[email protected]> # for vsprintf.c Reviewed-by: Petr Mladek <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions