]> git.baikalelectronics.ru Git - 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)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 28 Jul 2012 02:37:20 +0000 (22:37 -0400)
commit67cf64a64b772bcdab1a82705e56429b8b699353
treea60b31adede15169f7835e8a4b10151f20e8bd24
parentc8dc1ab6a616d3b53ff38c6445041413c5a5b8f3
random: mix in architectural randomness in extract_buf()

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>
Cc: stable@vger.kernel.org
drivers/char/random.c