Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 1 | menu "Android" |
| 2 | |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 3 | if ANDROID |
| 4 | |
Robert Love | 11980c2 | 2011-12-20 16:49:48 -0800 | [diff] [blame] | 5 | config ASHMEM |
| 6 | bool "Enable the Anonymous Shared Memory Subsystem" |
| 7 | default n |
Paul Bolle | 2c0fb1c | 2013-03-14 10:41:39 +0100 | [diff] [blame] | 8 | depends on SHMEM |
Cruz Julian Bishop | d7f9729 | 2012-12-22 09:00:46 +1000 | [diff] [blame] | 9 | ---help--- |
Robert Love | 11980c2 | 2011-12-20 16:49:48 -0800 | [diff] [blame] | 10 | 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 Bishop | d7f9729 | 2012-12-22 09:00:46 +1000 | [diff] [blame] | 14 | 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-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 17 | config ANDROID_LOW_MEMORY_KILLER |
| 18 | bool "Android Low Memory Killer" |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 19 | ---help--- |
Jagan Teki | ad5b0d0 | 2015-05-18 19:50:17 +0530 | [diff] [blame] | 20 | Registers processes to be killed when low memory conditions, this is useful |
| 21 | as there is no particular swap space on android. |
| 22 | |
Leo Sperling | b5b7fe8 | 2016-04-14 13:25:26 +0200 | [diff] [blame] | 23 | The registered process will kill according to the priorities in android init |
Jagan Teki | ad5b0d0 | 2015-05-18 19:50:17 +0530 | [diff] [blame] | 24 | scripts (/init.rc), and it defines priority values with minimum free memory size |
| 25 | for each priority. |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 26 | |
Erik Gilling | 9d1906e | 2013-02-28 16:42:58 -0800 | [diff] [blame] | 27 | config SW_SYNC |
Gustavo Padovan | aff9da1 | 2016-05-31 16:59:07 -0300 | [diff] [blame] | 28 | bool "Software synchronization framework" |
Erik Gilling | 9d1906e | 2013-02-28 16:42:58 -0800 | [diff] [blame] | 29 | default n |
Gustavo Padovan | 62304fb | 2016-04-28 10:46:58 -0300 | [diff] [blame] | 30 | depends on SYNC_FILE |
Gustavo Padovan | b1f6560 | 2016-05-31 16:59:13 -0300 | [diff] [blame] | 31 | depends on DEBUG_FS |
Cruz Julian Bishop | fb51b50 | 2013-09-03 22:05:05 +1000 | [diff] [blame] | 32 | ---help--- |
Erik Gilling | 9d1906e | 2013-02-28 16:42:58 -0800 | [diff] [blame] | 33 | A sync object driver that uses a 32bit counter to coordinate |
Junesung Lee | 7e25075 | 2015-09-12 09:58:47 +0900 | [diff] [blame] | 34 | synchronization. Useful when there is no hardware primitive backing |
Erik Gilling | 9d1906e | 2013-02-28 16:42:58 -0800 | [diff] [blame] | 35 | the synchronization. |
| 36 | |
Gustavo Padovan | aff9da1 | 2016-05-31 16:59:07 -0300 | [diff] [blame] | 37 | WARNING: improper use of this can result in deadlocking kernel |
| 38 | drivers from userspace. Intended for test and debug only. |
| 39 | |
Rebecca Schultz Zavin | c30707b | 2013-12-13 19:38:38 -0800 | [diff] [blame] | 40 | source "drivers/staging/android/ion/Kconfig" |
| 41 | |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 42 | endif # if ANDROID |
| 43 | |
| 44 | endmenu |