random: Add comment to random_initialize()
authorTony Luck <tony.luck@intel.com>
Mon, 23 Jul 2012 16:47:57 +0000 (09:47 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 24 Jul 2012 17:16:41 +0000 (13:16 -0400)
commitcbc96b7594b5691d61eba2db8b2ea723645be9ca
tree440e0d132abdb6b1d03e9440c803c0f7e2db38fc
parentb4237003cff66084ebeb502412d9cee392e6f52f
random: Add comment to random_initialize()

Many platforms have per-machine instance data (serial numbers,
asset tags, etc.) squirreled away in areas that are accessed
during early system bringup. Mixing this data into the random
pools has a very high value in providing better random data,
so we should allow (and even encourage) architecture code to
call add_device_randomness() from the setup_arch() paths.

However, this limits our options for internal structure of
the random driver since random_initialize() is not called
until long after setup_arch().

Add a big fat comment to rand_initialize() spelling out
this requirement.

Suggested-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
drivers/char/random.c