cpuquiet: Add GCOV_PROFILE
[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_STATS
14         bool "per CPU statistics"
15         default n
16         help
17           Enable up/down count and total time plugged statistics per CPU. These
18           depend on correct driver input for reliability
19
20           If in doubt say N.
21
22 config CPUQUIET_GOVERNOR_USERSPACE
23         bool "userspace"
24         default y
25         help
26           Manual control of the number of CPUs online.
27           This governor allows userspace to control the number of online CPUs.
28
29           If in doubt say Y.
30
31 config CPUQUIET_GOVERNOR_BALANCED
32         bool "balanced"
33         default y
34         depends on CPU_FREQ
35         help
36           Scale the number of CPUs online depending on the CPU load.
37           This governor will scale the number of CPUs online depending on the
38           CPU load and the number of runnable threads.
39
40           If in doubt say Y.
41
42 config CPUQUIET_GOVERNOR_RUNNABLE
43         bool "runnable threads"
44         default y
45         help
46           Scale the number of CPUs online depending on the number of runnable
47           threads.  This governor will scale the number of CPUs online depending
48           on the number of runnable threads.
49
50           If in doubt say Y.
51
52 choice
53         prompt "Default CPUQuiet governor"
54         default CPUQUIET_DEFAULT_GOV_USERSPACE
55         help
56           This option sets which CPUQuiet governor shall be loaded at
57           startup. If in doubt, select 'userspace'.
58
59 config CPUQUIET_DEFAULT_GOV_USERSPACE
60         bool "userspace"
61         select CPUQUIET_GOVERNOR_USERSPACE
62         help
63           Use the CPUQuiet governor 'userspace' as default.
64
65 config CPUQUIET_DEFAULT_GOV_BALANCED
66         bool "balanced"
67         select CPUQUIET_GOVERNOR_BALANCED
68         depends on CPU_FREQ
69         help
70           Use the CPUQuiet governor 'balanced' as default.
71
72 config CPUQUIET_DEFAULT_GOV_RUNNABLE
73         bool "runnable threads"
74         select CPUQUIET_GOVERNOR_RUNNABLE
75         help
76           Use the CPUQuiet governor 'runnable threads' as default.
77
78 endchoice
79
80 endif
81 endmenu