blob: 06e41d24ec62053c7f698b72ba4d6ca12f6e0f32 [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
Erik Gilling9d1906e2013-02-28 16:42:58 -080027config SW_SYNC
Gustavo Padovanaff9da12016-05-31 16:59:07 -030028 bool "Software synchronization framework"
Erik Gilling9d1906e2013-02-28 16:42:58 -080029 default n
Gustavo Padovan62304fb2016-04-28 10:46:58 -030030 depends on SYNC_FILE
Gustavo Padovanb1f65602016-05-31 16:59:13 -030031 depends on DEBUG_FS
Cruz Julian Bishopfb51b502013-09-03 22:05:05 +100032 ---help---
Erik Gilling9d1906e2013-02-28 16:42:58 -080033 A sync object driver that uses a 32bit counter to coordinate
Junesung Lee7e250752015-09-12 09:58:47 +090034 synchronization. Useful when there is no hardware primitive backing
Erik Gilling9d1906e2013-02-28 16:42:58 -080035 the synchronization.
36
Gustavo Padovanaff9da12016-05-31 16:59:07 -030037 WARNING: improper use of this can result in deadlocking kernel
38 drivers from userspace. Intended for test and debug only.
39
Rebecca Schultz Zavinc30707b2013-12-13 19:38:38 -080040source "drivers/staging/android/ion/Kconfig"
41
Greg Kroah-Hartman355b0502011-11-30 20:18:14 +090042endif # if ANDROID
43
44endmenu