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:
cedddb0
)
x86: pageattr-test: remove srandom32 call
author
Akinobu Mita
<
[email protected]
>
Mon, 29 Apr 2013 23:21:26 +0000
(16:21 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 30 Apr 2013 01:28:42 +0000
(18:28 -0700)
pageattr-test calls srandom32() once every test iteration. But calling
srandom32() after late_initcalls is not meaningfull. Because the random
states for random32() is mixed by good random numbers in late_initcall
prandom_reseed().
So this removes the call to srandom32().
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 0e38951e65eb0940bf57a3f6d8c8d01dff0674c7..5a9e856f6e2d4b34a8cf7647a66a97af0a67824f 100644
(file)
--- a/
arch/x86/mm/pageattr-test.c
+++ b/
arch/x86/mm/pageattr-test.c
@@
-130,7
+130,6
@@
static int pageattr_test(void)
}
failed += print_split(&sa);
- srandom32(100);
for (i = 0; i < NTEST; i++) {
unsigned long pfn = random32() % max_pfn_mapped;