staging: android: lowmemorykiller: Add config option to support oom_adj values
[firefly-linux-kernel-4.4.55.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_TIMED_OUTPUT
18         bool "Timed output class driver"
19         default y
20
21 config ANDROID_TIMED_GPIO
22         tristate "Android timed gpio driver"
23         depends on GPIOLIB || COMPILE_TEST
24         depends on ANDROID_TIMED_OUTPUT
25         default n
26         ---help---
27           Unlike generic gpio is to allow programs to access and manipulate gpio
28           registers from user space, timed output/gpio is a system to allow changing
29           a gpio pin and restore it automatically after a specified timeout.
30
31 config ANDROID_LOW_MEMORY_KILLER
32         bool "Android Low Memory Killer"
33         ---help---
34           Registers processes to be killed when low memory conditions, this is useful
35           as there is no particular swap space on android.
36
37           The registered process will kills according to the priorities in android init
38           scripts (/init.rc), and it defines priority values with minimum free memory size
39           for each priority.
40
41 config ANDROID_LOW_MEMORY_KILLER_AUTODETECT_OOM_ADJ_VALUES
42         bool "Android Low Memory Killer: detect oom_adj values"
43         depends on ANDROID_LOW_MEMORY_KILLER
44         default y
45         ---help---
46           Detect oom_adj values written to
47           /sys/module/lowmemorykiller/parameters/adj and convert them
48           to oom_score_adj values.
49
50 config SYNC
51         bool "Synchronization framework"
52         default n
53         select ANON_INODES
54         select DMA_SHARED_BUFFER
55         ---help---
56           This option enables the framework for synchronization between multiple
57           drivers.  Sync implementations can take advantage of hardware
58           synchronization built into devices like GPUs.
59
60 config SW_SYNC
61         bool "Software synchronization objects"
62         default n
63         depends on SYNC
64         ---help---
65           A sync object driver that uses a 32bit counter to coordinate
66           synchronization.  Useful when there is no hardware primitive backing
67           the synchronization.
68
69 config SW_SYNC_USER
70         bool "Userspace API for SW_SYNC"
71         default n
72         depends on SW_SYNC
73         ---help---
74           Provides a user space API to the sw sync object.
75           *WARNING* improper use of this can result in deadlocking kernel
76           drivers from userspace.
77
78 source "drivers/staging/android/ion/Kconfig"
79
80 endif # if ANDROID
81
82 endmenu