s390/mm: optimize randomize_et_dyn for !PF_RANDOMIZE
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 17 Dec 2013 12:41:31 +0000 (13:41 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 18 Dec 2013 16:36:38 +0000 (17:36 +0100)
commit9efe4f2992025c3a4027c60bf36ae9d710ca3781
tree599ce2a4d390994a52df0edc122495b0db1359c8
parent61aa4884b70cdf3b2d373e18ebbbada43789eade
s390/mm: optimize randomize_et_dyn for !PF_RANDOMIZE

Skip the call to brk_rnd() if the PF_RANDOMIZE flag is not set for
the process. This avoids the costly get_random_int() call. Modify
arch_randomize_brk() as well to make it look like randomize_et_dyn().

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/process.c