projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84759c6
)
Export get_random_int()
author
Kent Overstreet
<koverstreet@google.com>
Mon, 9 Apr 2012 04:39:00 +0000
(
00:39
-0400)
committer
Kent Overstreet
<koverstreet@google.com>
Sat, 23 Mar 2013 22:53:52 +0000
(15:53 -0700)
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>
drivers/char/random.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/random.c
b/drivers/char/random.c
index 32a6c5764950f642d12ae884aa7eb95d9cd1ccc2..cd9a6211dcadd61243905335a87d1e75bd91940e 100644
(file)
--- 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