blob: a17c483f906e98e983dc391a8b5b7d88ab27d79e [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
Arve Hjønnevåg73f1dd62012-09-25 17:37:14 -070027config 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 Hartman0055e0d2018-04-05 17:59:11 -070036config 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 Zavinc30707b2013-12-13 19:38:38 -080045source "drivers/staging/android/ion/Kconfig"
46
Colin Cross66bbef22014-04-02 18:30:04 -070047source "drivers/staging/android/fiq_debugger/Kconfig"
48
Greg Kroah-Hartman355b0502011-11-30 20:18:14 +090049endif # if ANDROID
50
51endmenu