a2025baedf41bd73de16bfe60c0d1b0b9c445ecd
[firefly-linux-kernel-4.4.55.git] / drivers / cpuquiet / Kconfig
1 menu "CPUQUIET Framework"
2
3 config CPUQUIET_FRAMEWORK
4         bool "Cpuquiet framework"
5         help
6           Cpuquiet implements pluggable policies for forcing cpu cores into a
7           quiescent state. Appropriate policies will save power without hurting
8           performance.
9
10
11 if CPUQUIET_FRAMEWORK
12
13 config CPUQUIET_GOVERNOR_USERSPACE
14         bool "userspace"
15         default y
16         help
17           Manual control of the number of CPUs online.
18           This governor allows userspace to control the number of online CPUs.
19
20           If in doubt say Y.
21
22 config CPUQUIET_GOVERNOR_BALANCED
23         bool "balanced"
24         default y
25         depends on CPU_FREQ
26         help
27           Scale the number of CPUs online depending on the CPU load.
28           This governor will scale the number of CPUs online depending on the
29           CPU load and the number of runnable threads.
30
31           If in doubt say Y.
32
33 config CPUQUIET_GOVERNOR_RUNNABLE
34         bool "runnable threads"
35         default y
36         help
37           Scale the number of CPUs online depending on the number of runnable
38           threads.  This governor will scale the number of CPUs online depending
39           on the number of runnable threads.
40
41           If in doubt say Y.
42
43 choice
44         prompt "Default CPUQuiet governor"
45         default CPUQUIET_DEFAULT_GOV_USERSPACE
46         help
47           This option sets which CPUQuiet governor shall be loaded at
48           startup. If in doubt, select 'userspace'.
49
50 config CPUQUIET_DEFAULT_GOV_USERSPACE
51         bool "userspace"
52         select CPUQUIET_GOVERNOR_USERSPACE
53         help
54           Use the CPUQuiet governor 'userspace' as default.
55
56 config CPUQUIET_DEFAULT_GOV_BALANCED
57         bool "balanced"
58         select CPUQUIET_GOVERNOR_BALANCED
59         depends on CPU_FREQ
60         help
61           Use the CPUQuiet governor 'balanced' as default.
62
63 config CPUQUIET_DEFAULT_GOV_RUNNABLE
64         bool "runnable threads"
65         select CPUQUIET_GOVERNOR_RUNNABLE
66         help
67           Use the CPUQuiet governor 'runnable threads' as default.
68
69 endchoice
70
71 endif
72 endmenu