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 | |
Arve Hjønnevåg | 73f1dd6 | 2012-09-25 17:37:14 -0700 | [diff] [blame] | 27 | config ANDROID_LOW_MEMORY_KILLER_AUTODETECT_OOM_ADJ_VALUES |
| 28 | bool "Android Low Memory Killer: detect oom_adj values" |
| 29 | depends on ANDROID_LOW_MEMORY_KILLER |
| 30 | default y |
| 31 | ---help--- |
| 32 | Detect oom_adj values written to |
| 33 | /sys/module/lowmemorykiller/parameters/adj and convert them |
| 34 | to oom_score_adj values. |
| 35 | |
Greg Hartman | 0055e0d | 2018-04-05 17:59:11 -0700 | [diff] [blame] | 36 | config ANDROID_VSOC |
| 37 | tristate "Android Virtual SoC support" |
| 38 | default n |
| 39 | depends on PCI_MSI |
| 40 | ---help--- |
| 41 | This option adds support for the Virtual SoC driver needed to boot |
| 42 | a 'cuttlefish' Android image inside QEmu. The driver interacts with |
| 43 | a QEmu ivshmem device. If built as a module, it will be called vsoc. |
| 44 | |
Rebecca Schultz Zavin | c30707b | 2013-12-13 19:38:38 -0800 | [diff] [blame] | 45 | source "drivers/staging/android/ion/Kconfig" |
| 46 | |
Colin Cross | 66bbef2 | 2014-04-02 18:30:04 -0700 | [diff] [blame] | 47 | source "drivers/staging/android/fiq_debugger/Kconfig" |
| 48 | |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 49 | endif # if ANDROID |
| 50 | |
| 51 | endmenu |