diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-05-05 02:20:22 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-05-13 23:59:22 +0200 |
commit | fe222a6ca2d53c38433cba5d3be62a39099e708e (patch) | |
tree | 7d94c73a3012d87d6f8a07267cf17c6e2eb648fd /fs/pnode.h | |
parent | 069c4ea6871c18bd368f27756e0f91ffb524a788 (diff) |
init: call time_init() before rand_initialize()
Currently time_init() is called after rand_initialize(), but
rand_initialize() makes use of the timer on various platforms, and
sometimes this timer needs to be initialized by time_init() first. In
order for random_get_entropy() to not return zero during early boot when
it's potentially used as an entropy source, reverse the order of these
two calls. The block doing random initialization was right before
time_init() before, so changing the order shouldn't have any complicated
effects.
Cc: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'fs/pnode.h')
0 files changed, 0 insertions, 0 deletions