blob: a7f45853c10337c25a6aea4dca90aa7cca5f99b5 [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
Larry Finger1e15f292012-12-29 01:55:20 +000021config CPU_FREQ_GOV_COMMON
Rafael J. Wysockie6f03652016-02-28 02:33:29 +010022 select IRQ_WORK
Larry Finger1e15f292012-12-29 01:55:20 +000023 bool
24
Lukasz Majewski2fb47192013-12-20 15:24:51 +010025config CPU_FREQ_BOOST_SW
26 bool
27 depends on THERMAL
28
Linus Torvalds1da177e2005-04-16 15:20:36 -070029config CPU_FREQ_STAT
Mike Frysinger9101be52007-04-18 16:18:13 -040030 tristate "CPU frequency translation statistics"
Mike Frysinger9101be52007-04-18 16:18:13 -040031 default y
32 help
33 This driver exports CPU frequency statistics information through sysfs
34 file system.
35
36 To compile this driver as a module, choose M here: the
37 module will be called cpufreq_stats.
38
39 If in doubt, say N.
Linus Torvalds1da177e2005-04-16 15:20:36 -070040
41config CPU_FREQ_STAT_DETAILS
Mike Frysinger9101be52007-04-18 16:18:13 -040042 bool "CPU frequency translation statistics details"
43 depends on CPU_FREQ_STAT
44 help
45 This will show detail CPU frequency translation table in sysfs file
46 system.
47
48 If in doubt, say N.
Linus Torvalds1da177e2005-04-16 15:20:36 -070049
Linus Torvalds1da177e2005-04-16 15:20:36 -070050choice
51 prompt "Default CPUFreq governor"
Alexander Shiyan559f56c2013-05-05 12:18:08 +000052 default CPU_FREQ_DEFAULT_GOV_USERSPACE if ARM_SA1100_CPUFREQ || ARM_SA1110_CPUFREQ
Linus Torvalds1da177e2005-04-16 15:20:36 -070053 default CPU_FREQ_DEFAULT_GOV_PERFORMANCE
54 help
55 This option sets which CPUFreq governor shall be loaded at
56 startup. If in doubt, select 'performance'.
57
58config CPU_FREQ_DEFAULT_GOV_PERFORMANCE
59 bool "performance"
60 select CPU_FREQ_GOV_PERFORMANCE
61 help
62 Use the CPUFreq governor 'performance' as default. This sets
63 the frequency statically to the highest frequency supported by
64 the CPU.
65
Alessandro Guido30d221d2008-04-18 13:31:13 -070066config CPU_FREQ_DEFAULT_GOV_POWERSAVE
67 bool "powersave"
Alessandro Guido30d221d2008-04-18 13:31:13 -070068 select CPU_FREQ_GOV_POWERSAVE
69 help
70 Use the CPUFreq governor 'powersave' as default. This sets
71 the frequency statically to the lowest frequency supported by
72 the CPU.
73
Linus Torvalds1da177e2005-04-16 15:20:36 -070074config CPU_FREQ_DEFAULT_GOV_USERSPACE
75 bool "userspace"
76 select CPU_FREQ_GOV_USERSPACE
77 help
78 Use the CPUFreq governor 'userspace' as default. This allows
Frederik Schwarzer0211a9c2008-12-29 22:14:56 +010079 you to set the CPU frequency manually or when a userspace
Linus Torvalds1da177e2005-04-16 15:20:36 -070080 program shall be able to set the CPU dynamically without having
81 to enable the userspace governor manually.
82
Thomas Renninger1c256242007-10-02 13:28:12 -070083config CPU_FREQ_DEFAULT_GOV_ONDEMAND
84 bool "ondemand"
85 select CPU_FREQ_GOV_ONDEMAND
86 select CPU_FREQ_GOV_PERFORMANCE
87 help
88 Use the CPUFreq governor 'ondemand' as default. This allows
89 you to get a full dynamic frequency capable system by simply
90 loading your cpufreq low-level hardware driver.
91 Be aware that not all cpufreq drivers support the ondemand
92 governor. If unsure have a look at the help section of the
93 driver. Fallback governor will be the performance governor.
94
95config CPU_FREQ_DEFAULT_GOV_CONSERVATIVE
96 bool "conservative"
97 select CPU_FREQ_GOV_CONSERVATIVE
98 select CPU_FREQ_GOV_PERFORMANCE
99 help
100 Use the CPUFreq governor 'conservative' as default. This allows
101 you to get a full dynamic frequency capable system by simply
102 loading your cpufreq low-level hardware driver.
103 Be aware that not all cpufreq drivers support the conservative
104 governor. If unsure have a look at the help section of the
105 driver. Fallback governor will be the performance governor.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700106endchoice
107
108config CPU_FREQ_GOV_PERFORMANCE
Mike Frysinger9101be52007-04-18 16:18:13 -0400109 tristate "'performance' governor"
110 help
Linus Torvalds1da177e2005-04-16 15:20:36 -0700111 This cpufreq governor sets the frequency statically to the
112 highest available CPU frequency.
113
Mike Frysinger9101be52007-04-18 16:18:13 -0400114 To compile this driver as a module, choose M here: the
115 module will be called cpufreq_performance.
116
Linus Torvalds1da177e2005-04-16 15:20:36 -0700117 If in doubt, say Y.
118
119config CPU_FREQ_GOV_POWERSAVE
Mike Frysinger9101be52007-04-18 16:18:13 -0400120 tristate "'powersave' governor"
121 help
Linus Torvalds1da177e2005-04-16 15:20:36 -0700122 This cpufreq governor sets the frequency statically to the
123 lowest available CPU frequency.
124
Mike Frysinger9101be52007-04-18 16:18:13 -0400125 To compile this driver as a module, choose M here: the
126 module will be called cpufreq_powersave.
127
Linus Torvalds1da177e2005-04-16 15:20:36 -0700128 If in doubt, say Y.
129
130config CPU_FREQ_GOV_USERSPACE
Mike Frysinger9101be52007-04-18 16:18:13 -0400131 tristate "'userspace' governor for userspace frequency scaling"
132 help
Linus Torvalds1da177e2005-04-16 15:20:36 -0700133 Enable this cpufreq governor when you either want to set the
Frederik Schwarzer0211a9c2008-12-29 22:14:56 +0100134 CPU frequency manually or when a userspace program shall
Linus Torvalds1da177e2005-04-16 15:20:36 -0700135 be able to set the CPU dynamically, like on LART
Erik Mouw4c412512006-04-03 14:21:00 +0200136 <http://www.lartmaker.nl/>.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700137
Mike Frysinger9101be52007-04-18 16:18:13 -0400138 To compile this driver as a module, choose M here: the
139 module will be called cpufreq_userspace.
140
Linus Torvalds1da177e2005-04-16 15:20:36 -0700141 For details, take a look at <file:Documentation/cpu-freq/>.
142
143 If in doubt, say Y.
144
145config CPU_FREQ_GOV_ONDEMAND
146 tristate "'ondemand' cpufreq policy governor"
Larry Finger1e15f292012-12-29 01:55:20 +0000147 select CPU_FREQ_GOV_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -0700148 help
149 'ondemand' - This driver adds a dynamic cpufreq policy governor.
150 The governor does a periodic polling and
151 changes frequency based on the CPU utilization.
152 The support for this governor depends on CPU capability to
153 do fast frequency switching (i.e, very low latency frequency
154 transitions).
155
Mike Frysinger9101be52007-04-18 16:18:13 -0400156 To compile this driver as a module, choose M here: the
157 module will be called cpufreq_ondemand.
158
Linus Torvalds1da177e2005-04-16 15:20:36 -0700159 For details, take a look at linux/Documentation/cpu-freq.
160
161 If in doubt, say N.
162
Dave Jonesb9170832005-05-31 19:03:47 -0700163config CPU_FREQ_GOV_CONSERVATIVE
164 tristate "'conservative' cpufreq governor"
165 depends on CPU_FREQ
Larry Finger1e15f292012-12-29 01:55:20 +0000166 select CPU_FREQ_GOV_COMMON
Dave Jonesb9170832005-05-31 19:03:47 -0700167 help
168 'conservative' - this driver is rather similar to the 'ondemand'
169 governor both in its source code and its purpose, the difference is
170 its optimisation for better suitability in a battery powered
171 environment. The frequency is gracefully increased and decreased
172 rather than jumping to 100% when speed is required.
173
174 If you have a desktop machine then you should really be considering
175 the 'ondemand' governor instead, however if you are using a laptop,
176 PDA or even an AMD64 based computer (due to the unacceptable
177 step-by-step latency issues between the minimum and maximum frequency
178 transitions in the CPU) you will probably want to use this governor.
179
Mike Frysinger9101be52007-04-18 16:18:13 -0400180 To compile this driver as a module, choose M here: the
181 module will be called cpufreq_conservative.
182
Dave Jonesb9170832005-05-31 19:03:47 -0700183 For details, take a look at linux/Documentation/cpu-freq.
184
185 If in doubt, say N.
186
Viresh Kumarf41f4812014-11-15 08:50:44 +0530187comment "CPU frequency scaling drivers"
188
Viresh Kumarbbcf0712014-09-09 19:58:03 +0530189config CPUFREQ_DT
190 tristate "Generic DT based cpufreq driver"
Viresh Kumar5fbfbcd2014-06-10 10:39:46 +0530191 depends on HAVE_CLK && OF
Viresh Kumarbbcf0712014-09-09 19:58:03 +0530192 # if CPU_THERMAL is on and THERMAL=m, CPUFREQ_DT cannot be =y:
Arnd Bergmann217886d2014-06-13 10:40:32 +0200193 depends on !CPU_THERMAL || THERMAL
Mark Brown109df082013-12-11 22:12:27 +0000194 select PM_OPP
Shawn Guo95ceafd2012-09-06 07:09:11 +0000195 help
Viresh Kumarbbcf0712014-09-09 19:58:03 +0530196 This adds a generic DT based cpufreq driver for frequency management.
Shawn Guo95ceafd2012-09-06 07:09:11 +0000197 It supports both uniprocessor (UP) and symmetric multiprocessor (SMP)
198 systems which share clock and voltage across all CPUs.
199
200 If in doubt, say N.
201
Viresh Kumarf41f4812014-11-15 08:50:44 +0530202if X86
Dave Jonesbb0a56e2011-05-19 18:51:07 -0400203source "drivers/cpufreq/Kconfig.x86"
Viresh Kumarf41f4812014-11-15 08:50:44 +0530204endif
Dave Jonesbb0a56e2011-05-19 18:51:07 -0400205
Viresh Kumarf41f4812014-11-15 08:50:44 +0530206if ARM || ARM64
Kukjin Kimf7d77072011-06-01 14:18:22 -0700207source "drivers/cpufreq/Kconfig.arm"
Viresh Kumarf41f4812014-11-15 08:50:44 +0530208endif
Kukjin Kimf7d77072011-06-01 14:18:22 -0700209
Viresh Kumarf41f4812014-11-15 08:50:44 +0530210if PPC32 || PPC64
211source "drivers/cpufreq/Kconfig.powerpc"
212endif
Viresh Kumar81c720c2013-04-04 12:54:17 +0000213
Viresh Kumarf41f4812014-11-15 08:50:44 +0530214if AVR32
Viresh Kumar81c720c2013-04-04 12:54:17 +0000215config AVR32_AT32AP_CPUFREQ
216 bool "CPU frequency driver for AT32AP"
217 depends on PLATFORM_AT32AP
218 default n
219 help
220 This enables the CPU frequency driver for AT32AP processors.
221 If in doubt, say N.
Viresh Kumarf41f4812014-11-15 08:50:44 +0530222endif
Viresh Kumar81c720c2013-04-04 12:54:17 +0000223
Viresh Kumarf41f4812014-11-15 08:50:44 +0530224if IA64
Viresh Kumarab423e42013-04-04 12:54:20 +0000225config IA64_ACPI_CPUFREQ
226 tristate "ACPI Processor P-States driver"
Viresh Kumarab423e42013-04-04 12:54:20 +0000227 depends on ACPI_PROCESSOR
228 help
229 This driver adds a CPUFreq driver which utilizes the ACPI
230 Processor Performance States.
231
232 For details, take a look at <file:Documentation/cpu-freq/>.
233
234 If in doubt, say N.
Viresh Kumarf41f4812014-11-15 08:50:44 +0530235endif
Viresh Kumarab423e42013-04-04 12:54:20 +0000236
Viresh Kumarf41f4812014-11-15 08:50:44 +0530237if MIPS
Viresh Kumar7a998932013-04-04 12:54:21 +0000238config LOONGSON2_CPUFREQ
239 tristate "Loongson2 CPUFreq Driver"
Viresh Kumar7a998932013-04-04 12:54:21 +0000240 help
241 This option adds a CPUFreq driver for loongson processors which
242 support software configurable cpu frequency.
243
244 Loongson2F and it's successors support this feature.
245
246 For details, take a look at <file:Documentation/cpu-freq/>.
247
248 If in doubt, say N.
249
Kelvin Cheunga0a22cf2014-10-17 18:23:31 +0800250config LOONGSON1_CPUFREQ
251 tristate "Loongson1 CPUFreq Driver"
252 help
253 This option adds a CPUFreq driver for loongson1 processors which
254 support software configurable cpu frequency.
255
256 For details, take a look at <file:Documentation/cpu-freq/>.
257
258 If in doubt, say N.
Viresh Kumarf41f4812014-11-15 08:50:44 +0530259endif
Kelvin Cheunga0a22cf2014-10-17 18:23:31 +0800260
Viresh Kumarf41f4812014-11-15 08:50:44 +0530261if SPARC64
Viresh Kumar764295a2013-04-04 12:54:24 +0000262config SPARC_US3_CPUFREQ
263 tristate "UltraSPARC-III CPU Frequency driver"
Viresh Kumar764295a2013-04-04 12:54:24 +0000264 help
265 This adds the CPUFreq driver for UltraSPARC-III processors.
266
267 For details, take a look at <file:Documentation/cpu-freq>.
268
269 If in doubt, say N.
270
271config SPARC_US2E_CPUFREQ
272 tristate "UltraSPARC-IIe CPU Frequency driver"
Viresh Kumar764295a2013-04-04 12:54:24 +0000273 help
274 This adds the CPUFreq driver for UltraSPARC-IIe processors.
275
276 For details, take a look at <file:Documentation/cpu-freq>.
277
278 If in doubt, say N.
Viresh Kumarf41f4812014-11-15 08:50:44 +0530279endif
Viresh Kumar764295a2013-04-04 12:54:24 +0000280
Viresh Kumarf41f4812014-11-15 08:50:44 +0530281if SUPERH
Viresh Kumar72582672013-04-04 12:54:22 +0000282config SH_CPU_FREQ
283 tristate "SuperH CPU Frequency driver"
Viresh Kumar72582672013-04-04 12:54:22 +0000284 help
285 This adds the cpufreq driver for SuperH. Any CPU that supports
286 clock rate rounding through the clock framework can use this
287 driver. While it will make the kernel slightly larger, this is
288 harmless for CPUs that don't support rate rounding. The driver
289 will also generate a notice in the boot log before disabling
290 itself if the CPU in question is not capable of rate rounding.
291
292 For details, take a look at <file:Documentation/cpu-freq>.
293
294 If unsure, say N.
Viresh Kumarf41f4812014-11-15 08:50:44 +0530295endif
Viresh Kumar72582672013-04-04 12:54:22 +0000296
Tang Yuantian2f249352015-03-13 12:39:02 +0800297config QORIQ_CPUFREQ
298 tristate "CPU frequency scaling driver for Freescale QorIQ SoCs"
299 depends on OF && COMMON_CLK && (PPC_E500MC || ARM)
Arnd Bergmannddd30ef2016-02-29 17:04:20 +0100300 depends on !CPU_THERMAL || THERMAL
Tang Yuantian2f249352015-03-13 12:39:02 +0800301 select CLK_QORIQ
302 help
303 This adds the CPUFreq driver support for Freescale QorIQ SoCs
304 which are capable of changing the CPU's frequency dynamically.
305
Dave Jonesbb0a56e2011-05-19 18:51:07 -0400306endif
307endmenu