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 | |
Rebecca Schultz Zavin | c30707b | 2013-12-13 19:38:38 -0800 | [diff] [blame] | 27 | source "drivers/staging/android/ion/Kconfig" |
| 28 | |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 29 | endif # if ANDROID |
| 30 | |
| 31 | endmenu |