summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorRobert Love <rlove@google.com>2008-10-14 10:00:47 -0400
committerBrian Swetland <swetland@google.com>2011-03-29 13:57:36 -0700
commit8c1d87675c81fecc65be80ae0e7778cf3aed7248 (patch)
tree2962d0cf8379ed93b2b80c0f579ccf3583db9800 /init
parent615d9cac4c9bb69644cbaf5a2f215fe0e9d130eb (diff)
ashmem for 2.6.27.
Forward port of ashmem to 2.6.27. Signed-off-by: Robert Love <rlove@google.com> ashmem: Don't install fault handler for private mmaps. Ashmem is used to create named private heaps. If this heap is backed by a tmpfs file it will allocate two pages for every page touched. In 2.6.27, the extra page would later be freed, but 2.6.29 does not scan anonymous pages when running without swap so the memory is not freed while the file is referenced. This change changes the behavior of private ashmem mmaps to match /dev/zero instead tmpfs. Signed-off-by: Arve Hjønnevåg <arve@android.com> ashmem: Add common prefix to name reported in /proc/pid/maps Signed-off-by: Arve Hjønnevåg <arve@android.com> ashmem: don't require a page aligned size This makes ashmem more similar to shmem and mmap, by not requiring the specified size to be page aligned, instead rounding it internally as needed. Signed-off-by: Marco Nelissen <marcone@android.com>
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 59276792ff8e..ce8838396fdf 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1085,6 +1085,15 @@ config SHMEM
option replaces shmem and tmpfs with the much simpler ramfs code,
which may be appropriate on small systems without swap.
+config ASHMEM
+ bool "Enable the Anonymous Shared Memory Subsystem"
+ default n
+ depends on SHMEM || TINY_SHMEM
+ help
+ The ashmem subsystem is a new shared memory allocator, similar to
+ POSIX SHM but with different behavior and sporting a simpler
+ file-based API.
+
config AIO
bool "Enable AIO support" if EXPERT
default y