diff options
author | Theodore Ts'o <tytso@mit.edu> | 2012-07-05 10:21:01 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-15 12:04:13 -0700 |
commit | b2b6f1202d6f948bfe8d280dec83da1fef05a05c (patch) | |
tree | b05d994874e35a5e048ca6202535bf9b186311fb /include/linux/random.h | |
parent | 118f98c7de67622c27ef9c968958b6de8483357f (diff) | |
download | lwn-b2b6f1202d6f948bfe8d280dec83da1fef05a05c.tar.gz lwn-b2b6f1202d6f948bfe8d280dec83da1fef05a05c.zip |
random: use the arch-specific rng in xfer_secondary_pool
commit e6d4947b12e8ad947add1032dd754803c6004824 upstream.
If the CPU supports a hardware random number generator, use it in
xfer_secondary_pool(), where it will significantly improve things and
where we can afford it.
Also, remove the use of the arch-specific rng in
add_timer_randomness(), since the call is significantly slower than
get_cycles(), and we're much better off using it in
xfer_secondary_pool() anyway.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/random.h')
0 files changed, 0 insertions, 0 deletions