]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
MIPS: topdown mmap support
authorJian Peng <jipeng2005@gmail.com>
Tue, 17 May 2011 19:27:49 +0000 (12:27 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 25 Jul 2011 16:26:51 +0000 (17:26 +0100)
commitd0be89f6c2570a63ac44ccdd12473a54243cd296
tree3ba987eb48751ab94b75bb2e74e4e33b89192b34
parent3a7136602b6fcb27073a241006cd5d029cacfafa
MIPS: topdown mmap support

This patch introduced topdown mmap support in user process address
space allocation policy.

Recently, we ran some large applications that use mmap heavily and
lead to OOM due to inflexible mmap allocation policy on MIPS32.

Since most other major archs supported it for years, it is reasonable
to follow the trend and reduce the pain of porting applications.

Due to cache aliasing concern, arch_get_unmapped_area_topdown() and
other helper functions are implemented in arch/mips/kernel/syscall.c.

Signed-off-by: Jian Peng <jipeng2005@gmail.com>
Cc: David Daney <ddaney@caviumnetworks.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2389/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/pgtable.h
arch/mips/mm/mmap.c