diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2012-01-16 11:23:29 -0800 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-08-10 00:24:41 +0100 |
commit | 5046e32b00df4d28b7235af6b4e6faea975049b7 (patch) | |
tree | 0466a0c5b86ed1f0829841cf21bb1d5fed603cc6 /kernel | |
parent | 1d1e71f1bd606f77b5e49d9077d6ce23d3f8fc06 (diff) |
random: Adjust the number of loops when initializing
commit 2dac8e54f988ab58525505d7ef982493374433c3 upstream.
When we are initializing using arch_get_random_long() we only need to
loop enough times to touch all the bytes in the buffer; using
poolwords for that does twice the number of operations necessary on a
64-bit machine, since in the random number generator code "word" means
32 bits.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Link: http://lkml.kernel.org/r/1324589281-31931-1-git-send-email-tytso@mit.edu
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions