From: Martin Schwidefsky Date: Tue, 17 Dec 2013 12:41:31 +0000 (+0100) Subject: s390/mm: optimize randomize_et_dyn for !PF_RANDOMIZE X-Git-Tag: v3.14-rc1~184^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9efe4f2992025c3a4027c60bf36ae9d710ca3781;p=pandora-kernel.git 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 --- Reading git-diff-tree failed