]> git.karo-electronics.de Git - karo-tx-linux.git/commit
random: use the arch-specific rng in xfer_secondary_pool
authorTheodore Ts'o <tytso@mit.edu>
Thu, 5 Jul 2012 14:21:01 +0000 (10:21 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:36:06 +0000 (15:36 -0400)
commit477ebbedc0cfbaf923e53c5bcf65958cdd167404
tree3d7051d8da0c1a84cb28be4c33b446f6b052a735
parent79df207bf71de0fc8c2de8d0eead6cd9283a85ed
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: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/char/random.c