projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a7b4d2
)
x86: rename random32() to prandom_u32()
author
Akinobu Mita
<
[email protected]
>
Mon, 29 Apr 2013 23:21:27 +0000
(16:21 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 30 Apr 2013 01:28:42 +0000
(18:28 -0700)
Use preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita <
[email protected]
>
Acked-by: H. Peter Anvin <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: "H. Peter Anvin" <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/x86/mm/pageattr-test.c
patch
|
blob
|
history
diff --git
a/arch/x86/mm/pageattr-test.c
b/arch/x86/mm/pageattr-test.c
index 5a9e856f6e2d4b34a8cf7647a66a97af0a67824f..d0b1773d9d2efb1b24ff9ed0da0d2bbea999fc7e 100644
(file)
--- a/
arch/x86/mm/pageattr-test.c
+++ b/
arch/x86/mm/pageattr-test.c
@@
-132,10
+132,10
@@
static int pageattr_test(void)
failed += print_split(&sa);
for (i = 0; i < NTEST; i++) {
- unsigned long pfn =
random
32() % max_pfn_mapped;
+ unsigned long pfn =
prandom_u
32() % max_pfn_mapped;
addr[i] = (unsigned long)__va(pfn << PAGE_SHIFT);
- len[i] =
random
32() % 100;
+ len[i] =
prandom_u
32() % 100;
len[i] = min_t(unsigned long, len[i], max_pfn_mapped - pfn - 1);
if (len[i] == 0)