diff options
author | Jian Peng <jipeng2005@gmail.com> | 2011-05-17 21:27:49 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-07-25 18:26:51 +0200 |
commit | d0be89f6c2570a63ac44ccdd12473a54243cd296 (patch) | |
tree | 3ba987eb48751ab94b75bb2e74e4e33b89192b34 /arch/mips/include/asm/pgtable.h | |
parent | MIPS: Remove redundant addr_limit assignment on exec. (diff) | |
download | linux-d0be89f6c2570a63ac44ccdd12473a54243cd296.tar.xz linux-d0be89f6c2570a63ac44ccdd12473a54243cd296.zip |
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>
Diffstat (limited to 'arch/mips/include/asm/pgtable.h')
-rw-r--r-- | arch/mips/include/asm/pgtable.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/include/asm/pgtable.h b/arch/mips/include/asm/pgtable.h index 7e40f3778179..b2202a68cf0f 100644 --- a/arch/mips/include/asm/pgtable.h +++ b/arch/mips/include/asm/pgtable.h @@ -414,6 +414,7 @@ int phys_mem_access_prot_allowed(struct file *file, unsigned long pfn, * constraints placed on us by the cache architecture. */ #define HAVE_ARCH_UNMAPPED_AREA +#define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN /* * No page table caches to initialise |