]> git.ipfire.org Git - people/arne_f/kernel.git/commit
random: mix in architectural randomness in extract_buf()
authorH. Peter Anvin <hpa@linux.intel.com>
Sat, 28 Jul 2012 02:26:08 +0000 (22:26 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:36:07 +0000 (15:36 -0400)
commit239b3337f4b6773eaedfee2e32f84d305faaeef3
treecf6f55f2afe87a30cfe80bdc18142e778589d75c
parent8dd6c36ae7dfc0b226bd8037c0e42b46e0f2f521
random: mix in architectural randomness in extract_buf()

commit d2e7c96af1e54b507ae2a6a7dd2baf588417a7e5 upstream.

Mix in any architectural randomness in extract_buf() instead of
xfer_secondary_buf().  This allows us to mix in more architectural
randomness, and it also makes xfer_secondary_buf() faster, moving a
tiny bit of additional CPU overhead to process which is extracting the
randomness.

[ Commit description modified by tytso to remove an extended
  advertisement for the RDRAND instruction. ]

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: DJ Johnston <dj.johnston@intel.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/char/random.c