]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
x86: pageattr-test: remove srandom32 call
authorAkinobu Mita <akinobu.mita@gmail.com>
Sun, 10 Mar 2013 10:55:25 +0000 (21:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 12 Mar 2013 03:57:34 +0000 (14:57 +1100)
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 <akinobu.mita@gmail.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/mm/pageattr-test.c

index b0086567271c9956b2196e3ba302e4a77009e811..8b8c3813efc8d43a68efc307beecb6809f33152a 100644 (file)
@@ -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;