aboutsummaryrefslogtreecommitdiff
path: root/lib/random32.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2013-09-21 13:58:22 -0400
committerMoyster <oysterized@gmail.com>2016-09-10 12:06:48 +0200
commitf9f7622978518d7a17e880e3519742d690b89ba5 (patch)
tree796584ff2648e682b9bcaf3e4bfbfe910e0aa48b /lib/random32.c
parent9ccd037fa0c77d680e1306dfdd0d6bfddf8b05a2 (diff)
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
Diffstat (limited to 'lib/random32.c')
0 files changed, 0 insertions, 0 deletions