diff options
author | Kent Overstreet <koverstreet@google.com> | 2012-04-09 06:39:00 +0200 |
---|---|---|
committer | Kent Overstreet <koverstreet@google.com> | 2013-03-23 23:53:52 +0100 |
commit | 1f8e8ed05184eed5f9adf48fb2f6be00a907a181 (patch) | |
tree | 0ff88a609c907bc852d6f72b369b685eb257ea29 | |
parent | Revert "rw_semaphore: remove up/down_read_non_owner" (diff) | |
download | linux-1f8e8ed05184eed5f9adf48fb2f6be00a907a181.tar.xz linux-1f8e8ed05184eed5f9adf48fb2f6be00a907a181.zip |
Export get_random_int()
Needed for bcache - need a cheap source of random numbers for perturbing
IO sizes, for rate limiting IO to the SSD.
Signed-off-by: Kent Overstreet <koverstreet@google.com>
CC: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r-- | drivers/char/random.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c index 32a6c5764950..cd9a6211dcad 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -1485,6 +1485,7 @@ unsigned int get_random_int(void) return ret; } +EXPORT_SYMBOL(get_random_int); /* * randomize_range() returns a start address such that |