• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1menu "Android"
2
3if ANDROID
4
5config ASHMEM
6	bool "Enable the Anonymous Shared Memory Subsystem"
7	default n
8	depends on SHMEM
9	---help---
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
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
17config ANDROID_LOW_MEMORY_KILLER
18	bool "Android Low Memory Killer"
19	---help---
20	  Registers processes to be killed when low memory conditions, this is useful
21	  as there is no particular swap space on android.
22
23	  The registered process will kill according to the priorities in android init
24	  scripts (/init.rc), and it defines priority values with minimum free memory size
25	  for each priority.
26
27config 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
36config 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
45source "drivers/staging/android/ion/Kconfig"
46
47source "drivers/staging/android/fiq_debugger/Kconfig"
48
49endif # if ANDROID
50
51endmenu
52