blob: 6c00d6f765c669027e4bf2ef5c5ed801342da074 [file] [log] [blame]
Greg Kroah-Hartman355b0502011-11-30 20:18:14 +09001menu "Android"
2
Greg Kroah-Hartman355b0502011-11-30 20:18:14 +09003if ANDROID
4
Robert Love11980c22011-12-20 16:49:48 -08005config ASHMEM
6 bool "Enable the Anonymous Shared Memory Subsystem"
7 default n
Paul Bolle2c0fb1c2013-03-14 10:41:39 +01008 depends on SHMEM
Cruz Julian Bishopd7f97292012-12-22 09:00:46 +10009 ---help---
Robert Love11980c22011-12-20 16:49:48 -080010 The ashmem subsystem is a new shared memory allocator, similar to
11 POSIX SHM but with different behavior and sporting a simpler
12 file-based API.
13
Cruz Julian Bishopd7f97292012-12-22 09:00:46 +100014 It is, in theory, a good memory allocator for low-memory devices,
15 because it can discard shared memory units when under memory pressure.
16
Greg Kroah-Hartman355b0502011-11-30 20:18:14 +090017config ANDROID_LOW_MEMORY_KILLER
18 bool "Android Low Memory Killer"
Greg Kroah-Hartman355b0502011-11-30 20:18:14 +090019 ---help---
Jagan Tekiad5b0d02015-05-18 19:50:17 +053020 Registers processes to be killed when low memory conditions, this is useful
21 as there is no particular swap space on android.
22
Leo Sperlingb5b7fe82016-04-14 13:25:26 +020023 The registered process will kill according to the priorities in android init
Jagan Tekiad5b0d02015-05-18 19:50:17 +053024 scripts (/init.rc), and it defines priority values with minimum free memory size
25 for each priority.
Greg Kroah-Hartman355b0502011-11-30 20:18:14 +090026
Rebecca Schultz Zavinc30707b2013-12-13 19:38:38 -080027source "drivers/staging/android/ion/Kconfig"
28
Greg Kroah-Hartman355b0502011-11-30 20:18:14 +090029endif # if ANDROID
30
31endmenu