powerpc+sparc64/mm: Remove hack in mmap randomize layout
authorDan McGee <dpmcgee@gmail.com>
Mon, 17 Oct 2011 13:05:23 +0000 (13:05 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Nov 2011 00:42:09 +0000 (11:42 +1100)
commitfa8cbaaf5a68f62db3f9a8444ecbb940b47984cb
treeef8c31c149c7f1fb6c504e7556dab3e56212c539
parent3ce21cdfe93efffa4ffba9cf3ca2576d3d60d6dc
powerpc+sparc64/mm: Remove hack in mmap randomize layout

Since commit 8a0a9bd4db63bc45e301, this comment in mmap_rnd() does not
hold true as the value returned by get_random_int() will in fact be

different every single call. Remove the comment and simplify the code
back to its original desired form.

This reverts commit a5adc91a4b44b5d1 which is no longer necessary and
also fixes the sparc code that copied this same adjustment.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/mmap_64.c
arch/sparc/kernel/sys_sparc_64.c