OSDN Git Service

Revert "usb: dwc3: turn off VBUS when leaving host mode"
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / block / Kconfig.iosched
1 if BLOCK
2
3 menu "IO Schedulers"
4
5 config IOSCHED_NOOP
6         bool
7         default y
8         ---help---
9           The no-op I/O scheduler is a minimal scheduler that does basic merging
10           and sorting. Its main uses include non-disk based block devices like
11           memory devices, and specialised software or hardware environments
12           that do their own scheduling and require only minimal assistance from
13           the kernel.
14
15 config IOSCHED_TEST
16         tristate "Test I/O scheduler"
17         depends on DEBUG_FS
18         default m
19         ---help---
20           The test I/O scheduler is a duplicate of the noop scheduler with
21           addition of test utlity.
22           It allows testing a block device by dispatching specific requests
23           according to the test case and declare PASS/FAIL according to the
24           requests completion error code.
25
26 config IOSCHED_DEADLINE
27         tristate "Deadline I/O scheduler"
28         default y
29         ---help---
30           The deadline I/O scheduler is simple and compact. It will provide
31           CSCAN service with FIFO expiration of requests, switching to
32           a new point in the service tree and doing a batch of IO from there
33           in case of expiry.
34
35 config IOSCHED_CFQ
36         tristate "CFQ I/O scheduler"
37         default y
38         ---help---
39           The CFQ I/O scheduler tries to distribute bandwidth equally
40           among all processes in the system. It should provide a fair
41           and low latency working environment, suitable for both desktop
42           and server systems.
43
44           This is the default I/O scheduler.
45
46 config CFQ_GROUP_IOSCHED
47         bool "CFQ Group Scheduling support"
48         depends on IOSCHED_CFQ && BLK_CGROUP
49         default n
50         ---help---
51           Enable group IO scheduling in CFQ.
52
53 config IOSCHED_ZEN
54         tristate "Zen I/O scheduler"
55         default y
56         ---help---
57         FCFS, dispatches are back-inserted, deadlines ensure fairness.
58         Should work best with devices where there is no travel delay.
59
60 config IOSCHED_MAPLE
61         tristate "Maple I/O scheduler"
62         default y
63
64 choice
65         prompt "Default I/O scheduler"
66         default DEFAULT_CFQ
67         help
68           Select the I/O scheduler which will be used by default for all
69           block devices.
70
71         config DEFAULT_DEADLINE
72                 bool "Deadline" if IOSCHED_DEADLINE=y
73
74         config DEFAULT_CFQ
75                 bool "CFQ" if IOSCHED_CFQ=y
76
77         config DEFAULT_ZEN
78                 bool "ZEN" if IOSCHED_ZEN=y
79
80         config DEFAULT_MAPLE
81                 bool "Maple" if IOSCHED_MAPLE=y
82
83         config DEFAULT_NOOP
84                 bool "No-op"
85
86 endchoice
87
88 config DEFAULT_IOSCHED
89         string
90         default "deadline" if DEFAULT_DEADLINE
91         default "cfq" if DEFAULT_CFQ
92         default "zen" if DEFAULT_ZEN
93         default "maple" if DEFAULT_MAPLE
94         default "noop" if DEFAULT_NOOP
95
96 endmenu
97
98 endif