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>
Thu, 19 May 2011 15:41:50 +0000 (16:41 +0100)
commit468d991aa5a07ad8a1433351e84851a9d0ae4215
tree867b60d92db4fd9ac99bda532c7290fe564d0821
parentc1d10d18c542278b7fbc413c289d3cb6219da6b3
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>