From: Akinobu Mita Date: Wed, 20 Mar 2013 04:08:44 +0000 (+1100) Subject: x86: pageattr-test: remove srandom32 call X-Git-Tag: next-20130322~1^2~72 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0b07d0eefb9ee5c533e5924348721beb740ad85e;p=karo-tx-linux.git x86: pageattr-test: remove srandom32 call 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 Acked-by: H. Peter Anvin Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Signed-off-by: Andrew Morton --- diff --git a/arch/x86/mm/pageattr-test.c b/arch/x86/mm/pageattr-test.c index b0086567271c..8b8c3813efc8 100644 --- 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;