Merge tag 'drm-intel-fixes-2019-08-29' of git://anongit.freedesktop.org/drm/drm-intel...
[linux-2.6-block.git] / drivers / cpufreq / Kconfig
CommitLineData
ec8f24b7 1# SPDX-License-Identifier: GPL-2.0-only
bb0a56ec
DJ
2menu "CPU Frequency scaling"
3
1da177e4
LT
4config CPU_FREQ
5 bool "CPU Frequency scaling"
83fe27ea 6 select SRCU
1da177e4
LT
7 help
8 CPU Frequency scaling allows you to change the clock speed of
9 CPUs on the fly. This is a nice method to save power, because
10 the lower the CPU clock speed, the less power the CPU consumes.
11
12 Note that this driver doesn't automatically change the CPU
13 clock speed, you need to either enable a dynamic cpufreq governor
14 (see below) after boot, or use a userspace tool.
15
16 For details, take a look at <file:Documentation/cpu-freq>.
17
18 If in doubt, say N.
19
20if CPU_FREQ
21
2d0c58ad
RW
22config CPU_FREQ_GOV_ATTR_SET
23 bool
24
1e15f295 25config CPU_FREQ_GOV_COMMON
2d0c58ad 26 select CPU_FREQ_GOV_ATTR_SET
e6f03657 27 select IRQ_WORK
1e15f295
LF
28 bool
29
1da177e4 30config CPU_FREQ_STAT
1aefc75b 31 bool "CPU frequency transition statistics"
9101be53 32 help
1aefc75b 33 Export CPU frequency statistics information through sysfs.
9101be53
MF
34
35 If in doubt, say N.
1da177e4 36
1da177e4
LT
37choice
38 prompt "Default CPUFreq governor"
559f56c7 39 default CPU_FREQ_DEFAULT_GOV_USERSPACE if ARM_SA1100_CPUFREQ || ARM_SA1110_CPUFREQ
1da177e4
LT
40 default CPU_FREQ_DEFAULT_GOV_PERFORMANCE
41 help
42 This option sets which CPUFreq governor shall be loaded at
43 startup. If in doubt, select 'performance'.
44
45config CPU_FREQ_DEFAULT_GOV_PERFORMANCE
46 bool "performance"
47 select CPU_FREQ_GOV_PERFORMANCE
48 help
49 Use the CPUFreq governor 'performance' as default. This sets
50 the frequency statically to the highest frequency supported by
51 the CPU.
52
30d221db
AG
53config CPU_FREQ_DEFAULT_GOV_POWERSAVE
54 bool "powersave"
30d221db
AG
55 select CPU_FREQ_GOV_POWERSAVE
56 help
57 Use the CPUFreq governor 'powersave' as default. This sets
58 the frequency statically to the lowest frequency supported by
59 the CPU.
60
1da177e4
LT
61config CPU_FREQ_DEFAULT_GOV_USERSPACE
62 bool "userspace"
63 select CPU_FREQ_GOV_USERSPACE
64 help
65 Use the CPUFreq governor 'userspace' as default. This allows
0211a9c8 66 you to set the CPU frequency manually or when a userspace
1da177e4
LT
67 program shall be able to set the CPU dynamically without having
68 to enable the userspace governor manually.
69
1c256245
TR
70config CPU_FREQ_DEFAULT_GOV_ONDEMAND
71 bool "ondemand"
72 select CPU_FREQ_GOV_ONDEMAND
73 select CPU_FREQ_GOV_PERFORMANCE
74 help
75 Use the CPUFreq governor 'ondemand' as default. This allows
76 you to get a full dynamic frequency capable system by simply
77 loading your cpufreq low-level hardware driver.
78 Be aware that not all cpufreq drivers support the ondemand
79 governor. If unsure have a look at the help section of the
80 driver. Fallback governor will be the performance governor.
81
82config CPU_FREQ_DEFAULT_GOV_CONSERVATIVE
83 bool "conservative"
84 select CPU_FREQ_GOV_CONSERVATIVE
85 select CPU_FREQ_GOV_PERFORMANCE
86 help
87 Use the CPUFreq governor 'conservative' as default. This allows
88 you to get a full dynamic frequency capable system by simply
89 loading your cpufreq low-level hardware driver.
90 Be aware that not all cpufreq drivers support the conservative
91 governor. If unsure have a look at the help section of the
92 driver. Fallback governor will be the performance governor.
9bdcb44e
RW
93
94config CPU_FREQ_DEFAULT_GOV_SCHEDUTIL
95 bool "schedutil"
cfe9492f 96 depends on SMP
9bdcb44e
RW
97 select CPU_FREQ_GOV_SCHEDUTIL
98 select CPU_FREQ_GOV_PERFORMANCE
99 help
100 Use the 'schedutil' CPUFreq governor by default. If unsure,
101 have a look at the help section of that governor. The fallback
102 governor will be 'performance'.
103
1da177e4
LT
104endchoice
105
106config CPU_FREQ_GOV_PERFORMANCE
9101be53
MF
107 tristate "'performance' governor"
108 help
1da177e4
LT
109 This cpufreq governor sets the frequency statically to the
110 highest available CPU frequency.
111
9101be53
MF
112 To compile this driver as a module, choose M here: the
113 module will be called cpufreq_performance.
114
1da177e4
LT
115 If in doubt, say Y.
116
117config CPU_FREQ_GOV_POWERSAVE
9101be53
MF
118 tristate "'powersave' governor"
119 help
1da177e4
LT
120 This cpufreq governor sets the frequency statically to the
121 lowest available CPU frequency.
122
9101be53
MF
123 To compile this driver as a module, choose M here: the
124 module will be called cpufreq_powersave.
125
1da177e4
LT
126 If in doubt, say Y.
127
128config CPU_FREQ_GOV_USERSPACE
9101be53
MF
129 tristate "'userspace' governor for userspace frequency scaling"
130 help
1da177e4 131 Enable this cpufreq governor when you either want to set the
0211a9c8 132 CPU frequency manually or when a userspace program shall
1da177e4 133 be able to set the CPU dynamically, like on LART
4c41251e 134 <http://www.lartmaker.nl/>.
1da177e4 135
9101be53
MF
136 To compile this driver as a module, choose M here: the
137 module will be called cpufreq_userspace.
138
1da177e4
LT
139 For details, take a look at <file:Documentation/cpu-freq/>.
140
141 If in doubt, say Y.
142
143config CPU_FREQ_GOV_ONDEMAND
144 tristate "'ondemand' cpufreq policy governor"
1e15f295 145 select CPU_FREQ_GOV_COMMON
1da177e4
LT
146 help
147 'ondemand' - This driver adds a dynamic cpufreq policy governor.
148 The governor does a periodic polling and
149 changes frequency based on the CPU utilization.
150 The support for this governor depends on CPU capability to
151 do fast frequency switching (i.e, very low latency frequency
152 transitions).
153
9101be53
MF
154 To compile this driver as a module, choose M here: the
155 module will be called cpufreq_ondemand.
156
1da177e4
LT
157 For details, take a look at linux/Documentation/cpu-freq.
158
159 If in doubt, say N.
160
b9170836
DJ
161config CPU_FREQ_GOV_CONSERVATIVE
162 tristate "'conservative' cpufreq governor"
163 depends on CPU_FREQ
1e15f295 164 select CPU_FREQ_GOV_COMMON
b9170836
DJ
165 help
166 'conservative' - this driver is rather similar to the 'ondemand'
167 governor both in its source code and its purpose, the difference is
168 its optimisation for better suitability in a battery powered
169 environment. The frequency is gracefully increased and decreased
170 rather than jumping to 100% when speed is required.
171
172 If you have a desktop machine then you should really be considering
173 the 'ondemand' governor instead, however if you are using a laptop,
174 PDA or even an AMD64 based computer (due to the unacceptable
175 step-by-step latency issues between the minimum and maximum frequency
176 transitions in the CPU) you will probably want to use this governor.
177
9101be53
MF
178 To compile this driver as a module, choose M here: the
179 module will be called cpufreq_conservative.
180
b9170836
DJ
181 For details, take a look at linux/Documentation/cpu-freq.
182
183 If in doubt, say N.
184
9bdcb44e 185config CPU_FREQ_GOV_SCHEDUTIL
58919e83 186 bool "'schedutil' cpufreq policy governor"
bf7cdff1 187 depends on CPU_FREQ && SMP
9bdcb44e
RW
188 select CPU_FREQ_GOV_ATTR_SET
189 select IRQ_WORK
190 help
191 This governor makes decisions based on the utilization data provided
192 by the scheduler. It sets the CPU frequency to be proportional to
193 the utilization/capacity ratio coming from the scheduler. If the
194 utilization is frequency-invariant, the new frequency is also
195 proportional to the maximum available frequency. If that is not the
196 case, it is proportional to the current frequency of the CPU. The
197 frequency tipping point is at utilization/capacity equal to 80% in
198 both cases.
199
9bdcb44e
RW
200 If in doubt, say N.
201
f41f4815
VK
202comment "CPU frequency scaling drivers"
203
bbcf0719
VK
204config CPUFREQ_DT
205 tristate "Generic DT based cpufreq driver"
5fbfbcd3 206 depends on HAVE_CLK && OF
f56aad1d 207 select CPUFREQ_DT_PLATDEV
109df086 208 select PM_OPP
95ceafd4 209 help
bbcf0719 210 This adds a generic DT based cpufreq driver for frequency management.
95ceafd4 211 It supports both uniprocessor (UP) and symmetric multiprocessor (SMP)
33cc4fc1 212 systems.
95ceafd4
SG
213
214 If in doubt, say N.
215
f56aad1d
VK
216config CPUFREQ_DT_PLATDEV
217 bool
218 help
219 This adds a generic DT based cpufreq platdev driver for frequency
220 management. This creates a 'cpufreq-dt' platform device, on the
221 supported platforms.
222
223 If in doubt, say N.
224
f41f4815 225if X86
bb0a56ec 226source "drivers/cpufreq/Kconfig.x86"
f41f4815 227endif
bb0a56ec 228
f41f4815 229if ARM || ARM64
f7d77079 230source "drivers/cpufreq/Kconfig.arm"
f41f4815 231endif
f7d77079 232
f41f4815
VK
233if PPC32 || PPC64
234source "drivers/cpufreq/Kconfig.powerpc"
235endif
81c720c9 236
f41f4815 237if IA64
ab423e43
VK
238config IA64_ACPI_CPUFREQ
239 tristate "ACPI Processor P-States driver"
ab423e43
VK
240 depends on ACPI_PROCESSOR
241 help
242 This driver adds a CPUFreq driver which utilizes the ACPI
243 Processor Performance States.
244
245 For details, take a look at <file:Documentation/cpu-freq/>.
246
247 If in doubt, say N.
f41f4815 248endif
ab423e43 249
f41f4815 250if MIPS
cdb56cbf
MM
251config BMIPS_CPUFREQ
252 tristate "BMIPS CPUfreq Driver"
253 help
254 This option adds a CPUfreq driver for BMIPS processors with
255 support for configurable CPU frequency.
256
257 For now, BMIPS5 chips are supported (such as the Broadcom 7425).
258
259 If in doubt, say N.
260
7a998935
VK
261config LOONGSON2_CPUFREQ
262 tristate "Loongson2 CPUFreq Driver"
0d307935 263 depends on LEMOTE_MACH2F
7a998935
VK
264 help
265 This option adds a CPUFreq driver for loongson processors which
266 support software configurable cpu frequency.
267
268 Loongson2F and it's successors support this feature.
269
270 For details, take a look at <file:Documentation/cpu-freq/>.
271
272 If in doubt, say N.
273
a0a22cf1
KC
274config LOONGSON1_CPUFREQ
275 tristate "Loongson1 CPUFreq Driver"
0d307935 276 depends on LOONGSON1_LS1B
a0a22cf1
KC
277 help
278 This option adds a CPUFreq driver for loongson1 processors which
279 support software configurable cpu frequency.
280
281 For details, take a look at <file:Documentation/cpu-freq/>.
282
283 If in doubt, say N.
f41f4815 284endif
a0a22cf1 285
f41f4815 286if SPARC64
764295ae
VK
287config SPARC_US3_CPUFREQ
288 tristate "UltraSPARC-III CPU Frequency driver"
764295ae
VK
289 help
290 This adds the CPUFreq driver for UltraSPARC-III processors.
291
292 For details, take a look at <file:Documentation/cpu-freq>.
293
294 If in doubt, say N.
295
296config SPARC_US2E_CPUFREQ
297 tristate "UltraSPARC-IIe CPU Frequency driver"
764295ae
VK
298 help
299 This adds the CPUFreq driver for UltraSPARC-IIe processors.
300
301 For details, take a look at <file:Documentation/cpu-freq>.
302
303 If in doubt, say N.
f41f4815 304endif
764295ae 305
f41f4815 306if SUPERH
7258267e
VK
307config SH_CPU_FREQ
308 tristate "SuperH CPU Frequency driver"
7258267e
VK
309 help
310 This adds the cpufreq driver for SuperH. Any CPU that supports
311 clock rate rounding through the clock framework can use this
312 driver. While it will make the kernel slightly larger, this is
313 harmless for CPUs that don't support rate rounding. The driver
314 will also generate a notice in the boot log before disabling
315 itself if the CPU in question is not capable of rate rounding.
316
317 For details, take a look at <file:Documentation/cpu-freq>.
318
319 If unsure, say N.
f41f4815 320endif
7258267e 321
2f249358
TY
322config QORIQ_CPUFREQ
323 tristate "CPU frequency scaling driver for Freescale QorIQ SoCs"
5026ac23 324 depends on OF && COMMON_CLK && (PPC_E500MC || ARM || ARM64)
2f249358
TY
325 select CLK_QORIQ
326 help
327 This adds the CPUFreq driver support for Freescale QorIQ SoCs
328 which are capable of changing the CPU's frequency dynamically.
329
bb0a56ec
DJ
330endif
331endmenu