summaryrefslogtreecommitdiff
path: root/drivers/cpuquiet/Kconfig
blob: 34416b1a227caeaa91127596f6d351684a97336c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
menu "CPUQUIET Framework"

config CPUQUIET_FRAMEWORK
	bool "Cpuquiet framework"
	help
	  Cpuquiet implements pluggable policies for forcing cpu cores into a
	  quiescent state. Appropriate policies will save power without hurting
	  performance.


if CPUQUIET_FRAMEWORK

config CPUQUIET_STATS
	bool "per CPU statistics"
	default n
	help
	  Enable up/down count and total time plugged statistics per CPU. These
	  depend on correct driver input for reliability

	  If in doubt say N.

config CPUQUIET_GOVERNOR_USERSPACE
	bool "userspace"
	default y
	help
	  Manual control of the number of CPUs online.
	  This governor allows userspace to control the number of online CPUs.

	  If in doubt say Y.

config CPUQUIET_GOVERNOR_BALANCED
	bool "balanced"
	default y
	depends on CPU_FREQ
	help
	  Scale the number of CPUs online depending on the CPU load.
	  This governor will scale the number of CPUs online depending on the
	  CPU load and the number of runnable threads.

	  If in doubt say Y.

config CPUQUIET_GOVERNOR_RUNNABLE
	bool "runnable threads"
	default y
	help
	  Scale the number of CPUs online depending on the number of runnable
	  threads.  This governor will scale the number of CPUs online depending
	  on the number of runnable threads.

	  If in doubt say Y.

choice
	prompt "Default CPUQuiet governor"
	default CPUQUIET_DEFAULT_GOV_USERSPACE
	help
	  This option sets which CPUQuiet governor shall be loaded at
	  startup. If in doubt, select 'userspace'.

config CPUQUIET_DEFAULT_GOV_USERSPACE
	bool "userspace"
	select CPUQUIET_GOVERNOR_USERSPACE
	help
	  Use the CPUQuiet governor 'userspace' as default.

config CPUQUIET_DEFAULT_GOV_BALANCED
	bool "balanced"
	select CPUQUIET_GOVERNOR_BALANCED
	depends on CPU_FREQ
	help
	  Use the CPUQuiet governor 'balanced' as default.

config CPUQUIET_DEFAULT_GOV_RUNNABLE
	bool "runnable threads"
	select CPUQUIET_GOVERNOR_RUNNABLE
	help
	  Use the CPUQuiet governor 'runnable threads' as default.

endchoice

endif
endmenu