blob: 8feb9048e62ffa45cf601b5deeb392c5be4486e3 [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_TIMED_OUTPUT
18 bool "Timed output class driver"
19 default y
20
21config ANDROID_TIMED_GPIO
22 tristate "Android timed gpio driver"
Alexandre Courbot76ec9d12013-03-28 04:34:56 -070023 depends on GPIOLIB && ANDROID_TIMED_OUTPUT
Greg Kroah-Hartman355b0502011-11-30 20:18:14 +090024 default n
25
26config ANDROID_LOW_MEMORY_KILLER
27 bool "Android Low Memory Killer"
Greg Kroah-Hartman355b0502011-11-30 20:18:14 +090028 ---help---
Cruz Julian Bishopd7f97292012-12-22 09:00:46 +100029 Registers processes to be killed when memory is low
Greg Kroah-Hartman355b0502011-11-30 20:18:14 +090030
Erik Gilling7ad530b2013-02-28 16:42:57 -080031config SYNC
32 bool "Synchronization framework"
33 default n
34 select ANON_INODES
Maarten Lankhorst0f0d8402014-07-01 12:57:31 +020035 select DMA_SHARED_BUFFER
Cruz Julian Bishopfb51b502013-09-03 22:05:05 +100036 ---help---
Erik Gilling7ad530b2013-02-28 16:42:57 -080037 This option enables the framework for synchronization between multiple
38 drivers. Sync implementations can take advantage of hardware
39 synchronization built into devices like GPUs.
40
Erik Gilling9d1906e2013-02-28 16:42:58 -080041config SW_SYNC
42 bool "Software synchronization objects"
43 default n
44 depends on SYNC
Cruz Julian Bishopfb51b502013-09-03 22:05:05 +100045 ---help---
Erik Gilling9d1906e2013-02-28 16:42:58 -080046 A sync object driver that uses a 32bit counter to coordinate
47 syncrhronization. Useful when there is no hardware primitive backing
48 the synchronization.
49
50config SW_SYNC_USER
51 bool "Userspace API for SW_SYNC"
52 default n
53 depends on SW_SYNC
Cruz Julian Bishopfb51b502013-09-03 22:05:05 +100054 ---help---
Erik Gilling9d1906e2013-02-28 16:42:58 -080055 Provides a user space API to the sw sync object.
56 *WARNING* improper use of this can result in deadlocking kernel
57 drivers from userspace.
58
Rebecca Schultz Zavinc30707b2013-12-13 19:38:38 -080059source "drivers/staging/android/ion/Kconfig"
60
Greg Kroah-Hartman355b0502011-11-30 20:18:14 +090061endif # if ANDROID
62
63endmenu