diff options
author | Mark Rutland <mark.rutland@arm.com> | 2020-02-10 16:00:12 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-02-28 07:21:52 +0300 |
commit | 5cbe0f13b51ac2fb2fd55902cff8d0077fc084c0 (patch) | |
tree | 7ac004926a2a07309afa3fca58702ea376a742c4 /include/linux/random.h | |
parent | f8788d86ab28f61f7b46eb6be375f8a726783636 (diff) | |
download | linux-5cbe0f13b51ac2fb2fd55902cff8d0077fc084c0.tar.xz |
random: split primary/secondary crng init paths
Currently crng_initialize() is used for both the primary CRNG and
secondary CRNGs. While we wish to share common logic, we need to do a
number of additional things for the primary CRNG, and this would be
easier to deal with were these handled in separate functions.
This patch splits crng_initialize() into crng_initialize_primary() and
crng_initialize_secondary(), with common logic factored out into a
crng_init_try_arch() helper.
There should be no functional change as a result of this patch.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Theodore Ts'o <tytso@mit.edu>
Link: https://lore.kernel.org/r/20200210130015.17664-2-mark.rutland@arm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'include/linux/random.h')
0 files changed, 0 insertions, 0 deletions