blob: 74919aa81dcb3311765899b976fab44d0ddeb5d2 [file] [log] [blame]
Dave Jonesbb0a56e2011-05-19 18:51:07 -04001menu "CPU Frequency scaling"
2
Linus Torvalds1da177e2005-04-16 15:20:36 -07003config CPU_FREQ
4 bool "CPU Frequency scaling"
Pranith Kumar83fe27e2014-12-05 11:24:45 -05005 select SRCU
Linus Torvalds1da177e2005-04-16 15:20:36 -07006 help
7 CPU Frequency scaling allows you to change the clock speed of
8 CPUs on the fly. This is a nice method to save power, because
9 the lower the CPU clock speed, the less power the CPU consumes.
10
11 Note that this driver doesn't automatically change the CPU
12 clock speed, you need to either enable a dynamic cpufreq governor
13 (see below) after boot, or use a userspace tool.
14
15 For details, take a look at <file:Documentation/cpu-freq>.
16
17 If in doubt, say N.
18
19if CPU_FREQ
20
Rafael J. Wysocki2d0c58a2016-03-22 02:49:15 +010021config CPU_FREQ_GOV_ATTR_SET
22 bool
23
Larry Finger1e15f292012-12-29 01:55:20 +000024config CPU_FREQ_GOV_COMMON
Rafael J. Wysocki2d0c58a2016-03-22 02:49:15 +010025 select CPU_FREQ_GOV_ATTR_SET
Rafael J. Wysockie6f03652016-02-28 02:33:29 +010026 select IRQ_WORK
Larry Finger1e15f292012-12-29 01:55:20 +000027 bool
28
Lukasz Majewski2fb47192013-12-20 15:24:51 +010029config CPU_FREQ_BOOST_SW
30 bool
31 depends on THERMAL
32
Linus Torvalds1da177e2005-04-16 15:20:36 -070033config CPU_FREQ_STAT
Rafael J. Wysocki1aefc752016-05-31 22:14:44 +020034 bool "CPU frequency transition statistics"
Mike Frysinger9101be52007-04-18 16:18:13 -040035 help
Rafael J. Wysocki1aefc752016-05-31 22:14:44 +020036 Export CPU frequency statistics information through sysfs.
Mike Frysinger9101be52007-04-18 16:18:13 -040037
38 If in doubt, say N.
Linus Torvalds1da177e2005-04-16 15:20:36 -070039
40config CPU_FREQ_STAT_DETAILS
Rafael J. Wysocki1aefc752016-05-31 22:14:44 +020041 bool "CPU frequency transition statistics details"
Mike Frysinger9101be52007-04-18 16:18:13 -040042 depends on CPU_FREQ_STAT
43 help
Rafael J. Wysocki1aefc752016-05-31 22:14:44 +020044 Show detailed CPU frequency transition table in sysfs.
Mike Frysinger9101be52007-04-18 16:18:13 -040045
46 If in doubt, say N.
Linus Torvalds1da177e2005-04-16 15:20:36 -070047
Linus Torvalds1da177e2005-04-16 15:20:36 -070048choice
49 prompt "Default CPUFreq governor"
Alexander Shiyan559f56c2013-05-05 12:18:08 +000050 default CPU_FREQ_DEFAULT_GOV_USERSPACE if ARM_SA1100_CPUFREQ || ARM_SA1110_CPUFREQ
Linus Torvalds1da177e2005-04-16 15:20:36 -070051 default CPU_FREQ_DEFAULT_GOV_PERFORMANCE
52 help
53 This option sets which CPUFreq governor shall be loaded at
54 startup. If in doubt, select 'performance'.
55
56config CPU_FREQ_DEFAULT_GOV_PERFORMANCE
57 bool "performance"
58 select CPU_FREQ_GOV_PERFORMANCE
59 help
60 Use the CPUFreq governor 'performance' as default. This sets
61 the frequency statically to the highest frequency supported by
62 the CPU.
63
Alessandro Guido30d221d2008-04-18 13:31:13 -070064config CPU_FREQ_DEFAULT_GOV_POWERSAVE
65 bool "powersave"
Alessandro Guido30d221d2008-04-18 13:31:13 -070066 select CPU_FREQ_GOV_POWERSAVE
67 help
68 Use the CPUFreq governor 'powersave' as default. This sets
69 the frequency statically to the lowest frequency supported by
70 the CPU.
71
Linus Torvalds1da177e2005-04-16 15:20:36 -070072config CPU_FREQ_DEFAULT_GOV_USERSPACE
73 bool "userspace"
74 select CPU_FREQ_GOV_USERSPACE
75 help
76 Use the CPUFreq governor 'userspace' as default. This allows
Frederik Schwarzer0211a9c2008-12-29 22:14:56 +010077 you to set the CPU frequency manually or when a userspace
Linus Torvalds1da177e2005-04-16 15:20:36 -070078 program shall be able to set the CPU dynamically without having
79 to enable the userspace governor manually.
80
Thomas Renninger1c256242007-10-02 13:28:12 -070081config CPU_FREQ_DEFAULT_GOV_ONDEMAND
82 bool "ondemand"
83 select CPU_FREQ_GOV_ONDEMAND
84 select CPU_FREQ_GOV_PERFORMANCE
85 help
86 Use the CPUFreq governor 'ondemand' as default. This allows
87 you to get a full dynamic frequency capable system by simply
88 loading your cpufreq low-level hardware driver.
89 Be aware that not all cpufreq drivers support the ondemand
90 governor. If unsure have a look at the help section of the
91 driver. Fallback governor will be the performance governor.
92
93config CPU_FREQ_DEFAULT_GOV_CONSERVATIVE
94 bool "conservative"
95 select CPU_FREQ_GOV_CONSERVATIVE
96 select CPU_FREQ_GOV_PERFORMANCE
97 help
98 Use the CPUFreq governor 'conservative' as default. This allows
99 you to get a full dynamic frequency capable system by simply
100 loading your cpufreq low-level hardware driver.
101 Be aware that not all cpufreq drivers support the conservative
102 governor. If unsure have a look at the help section of the
103 driver. Fallback governor will be the performance governor.
Rafael J. Wysocki9bdcb442016-04-02 01:09:12 +0200104
105config CPU_FREQ_DEFAULT_GOV_SCHEDUTIL
106 bool "schedutil"
Arnd Bergmanncfe94922016-05-11 14:52:01 +0200107 depends on SMP
Rafael J. Wysocki9bdcb442016-04-02 01:09:12 +0200108 select CPU_FREQ_GOV_SCHEDUTIL
109 select CPU_FREQ_GOV_PERFORMANCE
110 help
111 Use the 'schedutil' CPUFreq governor by default. If unsure,
112 have a look at the help section of that governor. The fallback
113 governor will be 'performance'.
114
Linus Torvalds1da177e2005-04-16 15:20:36 -0700115endchoice
116
117config CPU_FREQ_GOV_PERFORMANCE
Mike Frysinger9101be52007-04-18 16:18:13 -0400118 tristate "'performance' governor"
119 help
Linus Torvalds1da177e2005-04-16 15:20:36 -0700120 This cpufreq governor sets the frequency statically to the
121 highest available CPU frequency.
122
Mike Frysinger9101be52007-04-18 16:18:13 -0400123 To compile this driver as a module, choose M here: the
124 module will be called cpufreq_performance.
125
Linus Torvalds1da177e2005-04-16 15:20:36 -0700126 If in doubt, say Y.
127
128config CPU_FREQ_GOV_POWERSAVE
Mike Frysinger9101be52007-04-18 16:18:13 -0400129 tristate "'powersave' governor"
130 help
Linus Torvalds1da177e2005-04-16 15:20:36 -0700131 This cpufreq governor sets the frequency statically to the
132 lowest available CPU frequency.
133
Mike Frysinger9101be52007-04-18 16:18:13 -0400134 To compile this driver as a module, choose M here: the
135 module will be called cpufreq_powersave.
136
Linus Torvalds1da177e2005-04-16 15:20:36 -0700137 If in doubt, say Y.
138
139config CPU_FREQ_GOV_USERSPACE
Mike Frysinger9101be52007-04-18 16:18:13 -0400140 tristate "'userspace' governor for userspace frequency scaling"
141 help
Linus Torvalds1da177e2005-04-16 15:20:36 -0700142 Enable this cpufreq governor when you either want to set the
Frederik Schwarzer0211a9c2008-12-29 22:14:56 +0100143 CPU frequency manually or when a userspace program shall
Linus Torvalds1da177e2005-04-16 15:20:36 -0700144 be able to set the CPU dynamically, like on LART
Erik Mouw4c412512006-04-03 14:21:00 +0200145 <http://www.lartmaker.nl/>.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700146
Mike Frysinger9101be52007-04-18 16:18:13 -0400147 To compile this driver as a module, choose M here: the
148 module will be called cpufreq_userspace.
149
Linus Torvalds1da177e2005-04-16 15:20:36 -0700150 For details, take a look at <file:Documentation/cpu-freq/>.
151
152 If in doubt, say Y.
153
154config CPU_FREQ_GOV_ONDEMAND
155 tristate "'ondemand' cpufreq policy governor"
Larry Finger1e15f292012-12-29 01:55:20 +0000156 select CPU_FREQ_GOV_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -0700157 help
158 'ondemand' - This driver adds a dynamic cpufreq policy governor.
159 The governor does a periodic polling and
160 changes frequency based on the CPU utilization.
161 The support for this governor depends on CPU capability to
162 do fast frequency switching (i.e, very low latency frequency
163 transitions).
164
Mike Frysinger9101be52007-04-18 16:18:13 -0400165 To compile this driver as a module, choose M here: the
166 module will be called cpufreq_ondemand.
167
Linus Torvalds1da177e2005-04-16 15:20:36 -0700168 For details, take a look at linux/Documentation/cpu-freq.
169
170 If in doubt, say N.
171
Dave Jonesb9170832005-05-31 19:03:47 -0700172config CPU_FREQ_GOV_CONSERVATIVE
173 tristate "'conservative' cpufreq governor"
174 depends on CPU_FREQ
Larry Finger1e15f292012-12-29 01:55:20 +0000175 select CPU_FREQ_GOV_COMMON
Dave Jonesb9170832005-05-31 19:03:47 -0700176 help
177 'conservative' - this driver is rather similar to the 'ondemand'
178 governor both in its source code and its purpose, the difference is
179 its optimisation for better suitability in a battery powered
180 environment. The frequency is gracefully increased and decreased
181 rather than jumping to 100% when speed is required.
182
183 If you have a desktop machine then you should really be considering
184 the 'ondemand' governor instead, however if you are using a laptop,
185 PDA or even an AMD64 based computer (due to the unacceptable
186 step-by-step latency issues between the minimum and maximum frequency
187 transitions in the CPU) you will probably want to use this governor.
188
Mike Frysinger9101be52007-04-18 16:18:13 -0400189 To compile this driver as a module, choose M here: the
190 module will be called cpufreq_conservative.
191
Dave Jonesb9170832005-05-31 19:03:47 -0700192 For details, take a look at linux/Documentation/cpu-freq.
193
194 If in doubt, say N.
195
Rafael J. Wysocki9bdcb442016-04-02 01:09:12 +0200196config CPU_FREQ_GOV_SCHEDUTIL
197 tristate "'schedutil' cpufreq policy governor"
Rafael J. Wysockibf7cdff2016-05-06 15:00:38 +0200198 depends on CPU_FREQ && SMP
Rafael J. Wysocki9bdcb442016-04-02 01:09:12 +0200199 select CPU_FREQ_GOV_ATTR_SET
200 select IRQ_WORK
201 help
202 This governor makes decisions based on the utilization data provided
203 by the scheduler. It sets the CPU frequency to be proportional to
204 the utilization/capacity ratio coming from the scheduler. If the
205 utilization is frequency-invariant, the new frequency is also
206 proportional to the maximum available frequency. If that is not the
207 case, it is proportional to the current frequency of the CPU. The
208 frequency tipping point is at utilization/capacity equal to 80% in
209 both cases.
210
211 To compile this driver as a module, choose M here: the module will
212 be called cpufreq_schedutil.
213
214 If in doubt, say N.
215
Viresh Kumarf41f4812014-11-15 08:50:44 +0530216comment "CPU frequency scaling drivers"
217
Viresh Kumarbbcf0712014-09-09 19:58:03 +0530218config CPUFREQ_DT
219 tristate "Generic DT based cpufreq driver"
Viresh Kumar5fbfbcd2014-06-10 10:39:46 +0530220 depends on HAVE_CLK && OF
Viresh Kumarbbcf0712014-09-09 19:58:03 +0530221 # if CPU_THERMAL is on and THERMAL=m, CPUFREQ_DT cannot be =y:
Arnd Bergmann217886d2014-06-13 10:40:32 +0200222 depends on !CPU_THERMAL || THERMAL
Viresh Kumarf56aad12016-03-30 13:45:26 +0530223 select CPUFREQ_DT_PLATDEV
Mark Brown109df082013-12-11 22:12:27 +0000224 select PM_OPP
Shawn Guo95ceafd2012-09-06 07:09:11 +0000225 help
Viresh Kumarbbcf0712014-09-09 19:58:03 +0530226 This adds a generic DT based cpufreq driver for frequency management.
Shawn Guo95ceafd2012-09-06 07:09:11 +0000227 It supports both uniprocessor (UP) and symmetric multiprocessor (SMP)
228 systems which share clock and voltage across all CPUs.
229
230 If in doubt, say N.
231
Viresh Kumarf56aad12016-03-30 13:45:26 +0530232config CPUFREQ_DT_PLATDEV
233 bool
234 help
235 This adds a generic DT based cpufreq platdev driver for frequency
236 management. This creates a 'cpufreq-dt' platform device, on the
237 supported platforms.
238
239 If in doubt, say N.
240
Viresh Kumarf41f4812014-11-15 08:50:44 +0530241if X86
Dave Jonesbb0a56e2011-05-19 18:51:07 -0400242source "drivers/cpufreq/Kconfig.x86"
Viresh Kumarf41f4812014-11-15 08:50:44 +0530243endif
Dave Jonesbb0a56e2011-05-19 18:51:07 -0400244
Viresh Kumarf41f4812014-11-15 08:50:44 +0530245if ARM || ARM64
Kukjin Kimf7d77072011-06-01 14:18:22 -0700246source "drivers/cpufreq/Kconfig.arm"
Viresh Kumarf41f4812014-11-15 08:50:44 +0530247endif
Kukjin Kimf7d77072011-06-01 14:18:22 -0700248
Viresh Kumarf41f4812014-11-15 08:50:44 +0530249if PPC32 || PPC64
250source "drivers/cpufreq/Kconfig.powerpc"
251endif
Viresh Kumar81c720c2013-04-04 12:54:17 +0000252
Viresh Kumarf41f4812014-11-15 08:50:44 +0530253if AVR32
Viresh Kumar81c720c2013-04-04 12:54:17 +0000254config AVR32_AT32AP_CPUFREQ
255 bool "CPU frequency driver for AT32AP"
256 depends on PLATFORM_AT32AP
257 default n
258 help
259 This enables the CPU frequency driver for AT32AP processors.
260 If in doubt, say N.
Viresh Kumarf41f4812014-11-15 08:50:44 +0530261endif
Viresh Kumar81c720c2013-04-04 12:54:17 +0000262
Viresh Kumarf41f4812014-11-15 08:50:44 +0530263if IA64
Viresh Kumarab423e42013-04-04 12:54:20 +0000264config IA64_ACPI_CPUFREQ
265 tristate "ACPI Processor P-States driver"
Viresh Kumarab423e42013-04-04 12:54:20 +0000266 depends on ACPI_PROCESSOR
267 help
268 This driver adds a CPUFreq driver which utilizes the ACPI
269 Processor Performance States.
270
271 For details, take a look at <file:Documentation/cpu-freq/>.
272
273 If in doubt, say N.
Viresh Kumarf41f4812014-11-15 08:50:44 +0530274endif
Viresh Kumarab423e42013-04-04 12:54:20 +0000275
Viresh Kumarf41f4812014-11-15 08:50:44 +0530276if MIPS
Viresh Kumar7a998932013-04-04 12:54:21 +0000277config LOONGSON2_CPUFREQ
278 tristate "Loongson2 CPUFreq Driver"
Viresh Kumar7a998932013-04-04 12:54:21 +0000279 help
280 This option adds a CPUFreq driver for loongson processors which
281 support software configurable cpu frequency.
282
283 Loongson2F and it's successors support this feature.
284
285 For details, take a look at <file:Documentation/cpu-freq/>.
286
287 If in doubt, say N.
288
Kelvin Cheunga0a22cf2014-10-17 18:23:31 +0800289config LOONGSON1_CPUFREQ
290 tristate "Loongson1 CPUFreq Driver"
291 help
292 This option adds a CPUFreq driver for loongson1 processors which
293 support software configurable cpu frequency.
294
295 For details, take a look at <file:Documentation/cpu-freq/>.
296
297 If in doubt, say N.
Viresh Kumarf41f4812014-11-15 08:50:44 +0530298endif
Kelvin Cheunga0a22cf2014-10-17 18:23:31 +0800299
Viresh Kumarf41f4812014-11-15 08:50:44 +0530300if SPARC64
Viresh Kumar764295a2013-04-04 12:54:24 +0000301config SPARC_US3_CPUFREQ
302 tristate "UltraSPARC-III CPU Frequency driver"
Viresh Kumar764295a2013-04-04 12:54:24 +0000303 help
304 This adds the CPUFreq driver for UltraSPARC-III processors.
305
306 For details, take a look at <file:Documentation/cpu-freq>.
307
308 If in doubt, say N.
309
310config SPARC_US2E_CPUFREQ
311 tristate "UltraSPARC-IIe CPU Frequency driver"
Viresh Kumar764295a2013-04-04 12:54:24 +0000312 help
313 This adds the CPUFreq driver for UltraSPARC-IIe processors.
314
315 For details, take a look at <file:Documentation/cpu-freq>.
316
317 If in doubt, say N.
Viresh Kumarf41f4812014-11-15 08:50:44 +0530318endif
Viresh Kumar764295a2013-04-04 12:54:24 +0000319
Viresh Kumarf41f4812014-11-15 08:50:44 +0530320if SUPERH
Viresh Kumar72582672013-04-04 12:54:22 +0000321config SH_CPU_FREQ
322 tristate "SuperH CPU Frequency driver"
Viresh Kumar72582672013-04-04 12:54:22 +0000323 help
324 This adds the cpufreq driver for SuperH. Any CPU that supports
325 clock rate rounding through the clock framework can use this
326 driver. While it will make the kernel slightly larger, this is
327 harmless for CPUs that don't support rate rounding. The driver
328 will also generate a notice in the boot log before disabling
329 itself if the CPU in question is not capable of rate rounding.
330
331 For details, take a look at <file:Documentation/cpu-freq>.
332
333 If unsure, say N.
Viresh Kumarf41f4812014-11-15 08:50:44 +0530334endif
Viresh Kumar72582672013-04-04 12:54:22 +0000335
Tang Yuantian2f249352015-03-13 12:39:02 +0800336config QORIQ_CPUFREQ
337 tristate "CPU frequency scaling driver for Freescale QorIQ SoCs"
338 depends on OF && COMMON_CLK && (PPC_E500MC || ARM)
Arnd Bergmannddd30ef2016-02-29 17:04:20 +0100339 depends on !CPU_THERMAL || THERMAL
Tang Yuantian2f249352015-03-13 12:39:02 +0800340 select CLK_QORIQ
341 help
342 This adds the CPUFreq driver support for Freescale QorIQ SoCs
343 which are capable of changing the CPU's frequency dynamically.
344
Dave Jonesbb0a56e2011-05-19 18:51:07 -0400345endif
346endmenu