Commit | Line | Data |
---|---|---|
355b0502 GKH |
1 | menu "Android" |
2 | ||
355b0502 GKH |
3 | if ANDROID |
4 | ||
11980c2a RL |
5 | config ASHMEM |
6 | bool "Enable the Anonymous Shared Memory Subsystem" | |
7 | default n | |
2c0fb1c9 | 8 | depends on SHMEM |
d7f9729f | 9 | ---help--- |
11980c2a RL |
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 | ||
d7f9729f CJB |
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 | ||
355b0502 GKH |
17 | config ANDROID_LOW_MEMORY_KILLER |
18 | bool "Android Low Memory Killer" | |
355b0502 | 19 | ---help--- |
ad5b0d07 JT |
20 | Registers processes to be killed when low memory conditions, this is useful |
21 | as there is no particular swap space on android. | |
22 | ||
b5b7fe86 | 23 | The registered process will kill according to the priorities in android init |
ad5b0d07 JT |
24 | scripts (/init.rc), and it defines priority values with minimum free memory size |
25 | for each priority. | |
355b0502 | 26 | |
7ad530bf EG |
27 | config SYNC |
28 | bool "Synchronization framework" | |
29 | default n | |
30 | select ANON_INODES | |
0f0d8406 | 31 | select DMA_SHARED_BUFFER |
fb51b500 | 32 | ---help--- |
7ad530bf EG |
33 | This option enables the framework for synchronization between multiple |
34 | drivers. Sync implementations can take advantage of hardware | |
35 | synchronization built into devices like GPUs. | |
36 | ||
9d1906e6 EG |
37 | config SW_SYNC |
38 | bool "Software synchronization objects" | |
39 | default n | |
40 | depends on SYNC | |
62304fb1 | 41 | depends on SYNC_FILE |
fb51b500 | 42 | ---help--- |
9d1906e6 | 43 | A sync object driver that uses a 32bit counter to coordinate |
7e25075e | 44 | synchronization. Useful when there is no hardware primitive backing |
9d1906e6 EG |
45 | the synchronization. |
46 | ||
c30707be RSZ |
47 | source "drivers/staging/android/ion/Kconfig" |
48 | ||
355b0502 GKH |
49 | endif # if ANDROID |
50 | ||
51 | endmenu |