blob: 4de4dfae4ccc155de64801911552ad427dced92b [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"
5 help
6 CPU Frequency scaling allows you to change the clock speed of
7 CPUs on the fly. This is a nice method to save power, because
8 the lower the CPU clock speed, the less power the CPU consumes.
9
10 Note that this driver doesn't automatically change the CPU
11 clock speed, you need to either enable a dynamic cpufreq governor
12 (see below) after boot, or use a userspace tool.
13
14 For details, take a look at <file:Documentation/cpu-freq>.
15
16 If in doubt, say N.
17
18if CPU_FREQ
19
Larry Finger1e15f292012-12-29 01:55:20 +000020config CPU_FREQ_GOV_COMMON
21 bool
22
Lukasz Majewski2fb47192013-12-20 15:24:51 +010023config CPU_FREQ_BOOST_SW
24 bool
25 depends on THERMAL
26
Linus Torvalds1da177e2005-04-16 15:20:36 -070027config CPU_FREQ_STAT
Mike Frysinger9101be52007-04-18 16:18:13 -040028 tristate "CPU frequency translation statistics"
Mike Frysinger9101be52007-04-18 16:18:13 -040029 default y
30 help
31 This driver exports CPU frequency statistics information through sysfs
32 file system.
33
34 To compile this driver as a module, choose M here: the
35 module will be called cpufreq_stats.
36
37 If in doubt, say N.
Linus Torvalds1da177e2005-04-16 15:20:36 -070038
39config CPU_FREQ_STAT_DETAILS
Mike Frysinger9101be52007-04-18 16:18:13 -040040 bool "CPU frequency translation statistics details"
41 depends on CPU_FREQ_STAT
42 help
43 This will show detail CPU frequency translation table in sysfs file
44 system.
45
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.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700104endchoice
105
106config CPU_FREQ_GOV_PERFORMANCE
Mike Frysinger9101be52007-04-18 16:18:13 -0400107 tristate "'performance' governor"
108 help
Linus Torvalds1da177e2005-04-16 15:20:36 -0700109 This cpufreq governor sets the frequency statically to the
110 highest available CPU frequency.
111
Mike Frysinger9101be52007-04-18 16:18:13 -0400112 To compile this driver as a module, choose M here: the
113 module will be called cpufreq_performance.
114
Linus Torvalds1da177e2005-04-16 15:20:36 -0700115 If in doubt, say Y.
116
117config CPU_FREQ_GOV_POWERSAVE
Mike Frysinger9101be52007-04-18 16:18:13 -0400118 tristate "'powersave' governor"
119 help
Linus Torvalds1da177e2005-04-16 15:20:36 -0700120 This cpufreq governor sets the frequency statically to the
121 lowest 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_powersave.
125
Linus Torvalds1da177e2005-04-16 15:20:36 -0700126 If in doubt, say Y.
127
128config CPU_FREQ_GOV_USERSPACE
Mike Frysinger9101be52007-04-18 16:18:13 -0400129 tristate "'userspace' governor for userspace frequency scaling"
130 help
Linus Torvalds1da177e2005-04-16 15:20:36 -0700131 Enable this cpufreq governor when you either want to set the
Frederik Schwarzer0211a9c2008-12-29 22:14:56 +0100132 CPU frequency manually or when a userspace program shall
Linus Torvalds1da177e2005-04-16 15:20:36 -0700133 be able to set the CPU dynamically, like on LART
Erik Mouw4c412512006-04-03 14:21:00 +0200134 <http://www.lartmaker.nl/>.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700135
Mike Frysinger9101be52007-04-18 16:18:13 -0400136 To compile this driver as a module, choose M here: the
137 module will be called cpufreq_userspace.
138
Linus Torvalds1da177e2005-04-16 15:20:36 -0700139 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"
Larry Finger1e15f292012-12-29 01:55:20 +0000145 select CPU_FREQ_GOV_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -0700146 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
Mike Frysinger9101be52007-04-18 16:18:13 -0400154 To compile this driver as a module, choose M here: the
155 module will be called cpufreq_ondemand.
156
Linus Torvalds1da177e2005-04-16 15:20:36 -0700157 For details, take a look at linux/Documentation/cpu-freq.
158
159 If in doubt, say N.
160
Dave Jonesb9170832005-05-31 19:03:47 -0700161config CPU_FREQ_GOV_CONSERVATIVE
162 tristate "'conservative' cpufreq governor"
163 depends on CPU_FREQ
Larry Finger1e15f292012-12-29 01:55:20 +0000164 select CPU_FREQ_GOV_COMMON
Dave Jonesb9170832005-05-31 19:03:47 -0700165 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
Mike Frysinger9101be52007-04-18 16:18:13 -0400178 To compile this driver as a module, choose M here: the
179 module will be called cpufreq_conservative.
180
Dave Jonesb9170832005-05-31 19:03:47 -0700181 For details, take a look at linux/Documentation/cpu-freq.
182
183 If in doubt, say N.
184
Viresh Kumarbbcf0712014-09-09 19:58:03 +0530185config CPUFREQ_DT
186 tristate "Generic DT based cpufreq driver"
Viresh Kumar5fbfbcd2014-06-10 10:39:46 +0530187 depends on HAVE_CLK && OF
Viresh Kumarbbcf0712014-09-09 19:58:03 +0530188 # if CPU_THERMAL is on and THERMAL=m, CPUFREQ_DT cannot be =y:
Arnd Bergmann217886d2014-06-13 10:40:32 +0200189 depends on !CPU_THERMAL || THERMAL
Mark Brown109df082013-12-11 22:12:27 +0000190 select PM_OPP
Shawn Guo95ceafd2012-09-06 07:09:11 +0000191 help
Viresh Kumarbbcf0712014-09-09 19:58:03 +0530192 This adds a generic DT based cpufreq driver for frequency management.
Shawn Guo95ceafd2012-09-06 07:09:11 +0000193 It supports both uniprocessor (UP) and symmetric multiprocessor (SMP)
194 systems which share clock and voltage across all CPUs.
195
196 If in doubt, say N.
197
Dave Jonesbb0a56e2011-05-19 18:51:07 -0400198menu "x86 CPU frequency scaling drivers"
199depends on X86
200source "drivers/cpufreq/Kconfig.x86"
201endmenu
202
Kukjin Kimf7d77072011-06-01 14:18:22 -0700203menu "ARM CPU frequency scaling drivers"
Rob Herringaddea9e2014-02-24 02:27:57 +0000204depends on ARM || ARM64
Kukjin Kimf7d77072011-06-01 14:18:22 -0700205source "drivers/cpufreq/Kconfig.arm"
206endmenu
207
Viresh Kumar81c720c2013-04-04 12:54:17 +0000208menu "AVR32 CPU frequency scaling drivers"
209depends on AVR32
210
211config AVR32_AT32AP_CPUFREQ
212 bool "CPU frequency driver for AT32AP"
213 depends on PLATFORM_AT32AP
214 default n
215 help
216 This enables the CPU frequency driver for AT32AP processors.
217 If in doubt, say N.
218
219endmenu
220
Viresh Kumarab423e42013-04-04 12:54:20 +0000221menu "CPUFreq processor drivers"
222depends on IA64
223
224config IA64_ACPI_CPUFREQ
225 tristate "ACPI Processor P-States driver"
Viresh Kumarab423e42013-04-04 12:54:20 +0000226 depends on ACPI_PROCESSOR
227 help
228 This driver adds a CPUFreq driver which utilizes the ACPI
229 Processor Performance States.
230
231 For details, take a look at <file:Documentation/cpu-freq/>.
232
233 If in doubt, say N.
234
235endmenu
236
Viresh Kumar7a998932013-04-04 12:54:21 +0000237menu "MIPS CPUFreq processor drivers"
238depends on MIPS
239
240config LOONGSON2_CPUFREQ
241 tristate "Loongson2 CPUFreq Driver"
Viresh Kumar7a998932013-04-04 12:54:21 +0000242 help
243 This option adds a CPUFreq driver for loongson processors which
244 support software configurable cpu frequency.
245
246 Loongson2F and it's successors support this feature.
247
248 For details, take a look at <file:Documentation/cpu-freq/>.
249
250 If in doubt, say N.
251
Kelvin Cheunga0a22cf2014-10-17 18:23:31 +0800252config LOONGSON1_CPUFREQ
253 tristate "Loongson1 CPUFreq Driver"
254 help
255 This option adds a CPUFreq driver for loongson1 processors which
256 support software configurable cpu frequency.
257
258 For details, take a look at <file:Documentation/cpu-freq/>.
259
260 If in doubt, say N.
261
Viresh Kumar7a998932013-04-04 12:54:21 +0000262endmenu
263
Dmitry Eremin-Solenikov5d8c6652011-06-29 05:07:56 +0000264menu "PowerPC CPU frequency scaling drivers"
265depends on PPC32 || PPC64
266source "drivers/cpufreq/Kconfig.powerpc"
267endmenu
268
Viresh Kumar764295a2013-04-04 12:54:24 +0000269menu "SPARC CPU frequency scaling drivers"
270depends on SPARC64
271config SPARC_US3_CPUFREQ
272 tristate "UltraSPARC-III CPU Frequency driver"
Viresh Kumar764295a2013-04-04 12:54:24 +0000273 help
274 This adds the CPUFreq driver for UltraSPARC-III processors.
275
276 For details, take a look at <file:Documentation/cpu-freq>.
277
278 If in doubt, say N.
279
280config SPARC_US2E_CPUFREQ
281 tristate "UltraSPARC-IIe CPU Frequency driver"
Viresh Kumar764295a2013-04-04 12:54:24 +0000282 help
283 This adds the CPUFreq driver for UltraSPARC-IIe processors.
284
285 For details, take a look at <file:Documentation/cpu-freq>.
286
287 If in doubt, say N.
288endmenu
289
Viresh Kumar72582672013-04-04 12:54:22 +0000290menu "SH CPU Frequency scaling"
291depends on SUPERH
292config SH_CPU_FREQ
293 tristate "SuperH CPU Frequency driver"
Viresh Kumar72582672013-04-04 12:54:22 +0000294 help
295 This adds the cpufreq driver for SuperH. Any CPU that supports
296 clock rate rounding through the clock framework can use this
297 driver. While it will make the kernel slightly larger, this is
298 harmless for CPUs that don't support rate rounding. The driver
299 will also generate a notice in the boot log before disabling
300 itself if the CPU in question is not capable of rate rounding.
301
302 For details, take a look at <file:Documentation/cpu-freq>.
303
304 If unsure, say N.
305endmenu
306
Dave Jonesbb0a56e2011-05-19 18:51:07 -0400307endif
308endmenu