diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-12-17 13:41:31 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-12-18 17:36:38 +0100 |
commit | 9efe4f2992025c3a4027c60bf36ae9d710ca3781 (patch) | |
tree | 599ce2a4d390994a52df0edc122495b0db1359c8 /drivers/s390/crypto/zcrypt_cex4.c | |
parent | s390: use IS_ENABLED to check if a CONFIG is set to y or m (diff) | |
download | linux-9efe4f2992025c3a4027c60bf36ae9d710ca3781.tar.xz linux-9efe4f2992025c3a4027c60bf36ae9d710ca3781.zip |
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>
Diffstat (limited to 'drivers/s390/crypto/zcrypt_cex4.c')
0 files changed, 0 insertions, 0 deletions