2ac0b6147ef536c7a0158f0a8e33f751c4520339
[cascardo/linux.git] / drivers / staging / android / Kconfig
1 menu "Android"
2
3 if ANDROID
4
5 config 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
17 config ANDROID_LOGGER
18         tristate "Android log driver"
19         default n
20         ---help---
21           This adds support for system-wide logging using four log buffers.
22
23           These are:
24
25               1: main
26               2: events
27               3: radio
28               4: system
29
30           Log reading and writing is performed via normal Linux reads and
31           optimized writes. This optimization avoids logging having too
32           much overhead in the system.
33
34 config ANDROID_TIMED_OUTPUT
35         bool "Timed output class driver"
36         default y
37
38 config ANDROID_TIMED_GPIO
39         tristate "Android timed gpio driver"
40         depends on GPIOLIB && ANDROID_TIMED_OUTPUT
41         default n
42
43 config ANDROID_LOW_MEMORY_KILLER
44         bool "Android Low Memory Killer"
45         ---help---
46           Registers processes to be killed when memory is low
47
48 config SYNC
49         bool "Synchronization framework"
50         default n
51         select ANON_INODES
52         select DMA_SHARED_BUFFER
53         ---help---
54           This option enables the framework for synchronization between multiple
55           drivers.  Sync implementations can take advantage of hardware
56           synchronization built into devices like GPUs.
57
58 config SW_SYNC
59         bool "Software synchronization objects"
60         default n
61         depends on SYNC
62         ---help---
63           A sync object driver that uses a 32bit counter to coordinate
64           syncrhronization.  Useful when there is no hardware primitive backing
65           the synchronization.
66
67 config SW_SYNC_USER
68         bool "Userspace API for SW_SYNC"
69         default n
70         depends on SW_SYNC
71         ---help---
72           Provides a user space API to the sw sync object.
73           *WARNING* improper use of this can result in deadlocking kernel
74           drivers from userspace.
75
76 source "drivers/staging/android/ion/Kconfig"
77
78 endif # if ANDROID
79
80 endmenu