]> git.baikalelectronics.ru Git - kernel.git/commit
random: allow architectures to optionally define random_get_entropy()
authorTheodore Ts'o <tytso@mit.edu>
Sat, 21 Sep 2013 17:58:22 +0000 (13:58 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 10 Oct 2013 18:30:53 +0000 (14:30 -0400)
commitf8bd29a92aa295497a6c9ecee8cb01f874825b5d
tree176cda3ae729c520bff1b0f6a19806c18c0a7523
parent7377b4a0c0c95eab9c2f6d1f454d226d8df1d6d4
random: allow architectures to optionally define random_get_entropy()

Allow architectures which have a disabled get_cycles() function to
provide a random_get_entropy() function which provides a fine-grained,
rapidly changing counter that can be used by the /dev/random driver.

For example, an architecture might have a rapidly changing register
used to control random TLB cache eviction, or DRAM refresh that
doesn't meet the requirements of get_cycles(), but which is good
enough for the needs of the random driver.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@vger.kernel.org
drivers/char/random.c
include/linux/timex.h