blob: 29b2ef5a68b9318b3791c37e8e1b94c12b6553d6 [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 Kumarf41f4812014-11-15 08:50:44 +0530185comment "CPU frequency scaling drivers"
186
Viresh Kumarbbcf0712014-09-09 19:58:03 +0530187config CPUFREQ_DT
188 tristate "Generic DT based cpufreq driver"
Viresh Kumar5fbfbcd2014-06-10 10:39:46 +0530189 depends on HAVE_CLK && OF
Viresh Kumarbbcf0712014-09-09 19:58:03 +0530190 # if CPU_THERMAL is on and THERMAL=m, CPUFREQ_DT cannot be =y:
Arnd Bergmann217886d2014-06-13 10:40:32 +0200191 depends on !CPU_THERMAL || THERMAL
Mark Brown109df082013-12-11 22:12:27 +0000192 select PM_OPP
Shawn Guo95ceafd2012-09-06 07:09:11 +0000193 help
Viresh Kumarbbcf0712014-09-09 19:58:03 +0530194 This adds a generic DT based cpufreq driver for frequency management.
Shawn Guo95ceafd2012-09-06 07:09:11 +0000195 It supports both uniprocessor (UP) and symmetric multiprocessor (SMP)
196 systems which share clock and voltage across all CPUs.
197
198 If in doubt, say N.
199
Viresh Kumarf41f4812014-11-15 08:50:44 +0530200if X86
Dave Jonesbb0a56e2011-05-19 18:51:07 -0400201source "drivers/cpufreq/Kconfig.x86"
Viresh Kumarf41f4812014-11-15 08:50:44 +0530202endif
Dave Jonesbb0a56e2011-05-19 18:51:07 -0400203
Viresh Kumarf41f4812014-11-15 08:50:44 +0530204if ARM || ARM64
Kukjin Kimf7d77072011-06-01 14:18:22 -0700205source "drivers/cpufreq/Kconfig.arm"
Viresh Kumarf41f4812014-11-15 08:50:44 +0530206endif
Kukjin Kimf7d77072011-06-01 14:18:22 -0700207
Viresh Kumarf41f4812014-11-15 08:50:44 +0530208if PPC32 || PPC64
209source "drivers/cpufreq/Kconfig.powerpc"
210endif
Viresh Kumar81c720c2013-04-04 12:54:17 +0000211
Viresh Kumarf41f4812014-11-15 08:50:44 +0530212if AVR32
Viresh Kumar81c720c2013-04-04 12:54:17 +0000213config AVR32_AT32AP_CPUFREQ
214 bool "CPU frequency driver for AT32AP"
215 depends on PLATFORM_AT32AP
216 default n
217 help
218 This enables the CPU frequency driver for AT32AP processors.
219 If in doubt, say N.
Viresh Kumarf41f4812014-11-15 08:50:44 +0530220endif
Viresh Kumar81c720c2013-04-04 12:54:17 +0000221
Viresh Kumarf41f4812014-11-15 08:50:44 +0530222if IA64
Viresh Kumarab423e42013-04-04 12:54:20 +0000223config IA64_ACPI_CPUFREQ
224 tristate "ACPI Processor P-States driver"
Viresh Kumarab423e42013-04-04 12:54:20 +0000225 depends on ACPI_PROCESSOR
226 help
227 This driver adds a CPUFreq driver which utilizes the ACPI
228 Processor Performance States.
229
230 For details, take a look at <file:Documentation/cpu-freq/>.
231
232 If in doubt, say N.
Viresh Kumarf41f4812014-11-15 08:50:44 +0530233endif
Viresh Kumarab423e42013-04-04 12:54:20 +0000234
Viresh Kumarf41f4812014-11-15 08:50:44 +0530235if MIPS
Viresh Kumar7a998932013-04-04 12:54:21 +0000236config LOONGSON2_CPUFREQ
237 tristate "Loongson2 CPUFreq Driver"
Viresh Kumar7a998932013-04-04 12:54:21 +0000238 help
239 This option adds a CPUFreq driver for loongson processors which
240 support software configurable cpu frequency.
241
242 Loongson2F and it's successors support this feature.
243
244 For details, take a look at <file:Documentation/cpu-freq/>.
245
246 If in doubt, say N.
247
Kelvin Cheunga0a22cf2014-10-17 18:23:31 +0800248config LOONGSON1_CPUFREQ
249 tristate "Loongson1 CPUFreq Driver"
250 help
251 This option adds a CPUFreq driver for loongson1 processors which
252 support software configurable cpu frequency.
253
254 For details, take a look at <file:Documentation/cpu-freq/>.
255
256 If in doubt, say N.
Viresh Kumarf41f4812014-11-15 08:50:44 +0530257endif
Kelvin Cheunga0a22cf2014-10-17 18:23:31 +0800258
Viresh Kumarf41f4812014-11-15 08:50:44 +0530259if SPARC64
Viresh Kumar764295a2013-04-04 12:54:24 +0000260config SPARC_US3_CPUFREQ
261 tristate "UltraSPARC-III CPU Frequency driver"
Viresh Kumar764295a2013-04-04 12:54:24 +0000262 help
263 This adds the CPUFreq driver for UltraSPARC-III processors.
264
265 For details, take a look at <file:Documentation/cpu-freq>.
266
267 If in doubt, say N.
268
269config SPARC_US2E_CPUFREQ
270 tristate "UltraSPARC-IIe CPU Frequency driver"
Viresh Kumar764295a2013-04-04 12:54:24 +0000271 help
272 This adds the CPUFreq driver for UltraSPARC-IIe processors.
273
274 For details, take a look at <file:Documentation/cpu-freq>.
275
276 If in doubt, say N.
Viresh Kumarf41f4812014-11-15 08:50:44 +0530277endif
Viresh Kumar764295a2013-04-04 12:54:24 +0000278
Viresh Kumarf41f4812014-11-15 08:50:44 +0530279if SUPERH
Viresh Kumar72582672013-04-04 12:54:22 +0000280config SH_CPU_FREQ
281 tristate "SuperH CPU Frequency driver"
Viresh Kumar72582672013-04-04 12:54:22 +0000282 help
283 This adds the cpufreq driver for SuperH. Any CPU that supports
284 clock rate rounding through the clock framework can use this
285 driver. While it will make the kernel slightly larger, this is
286 harmless for CPUs that don't support rate rounding. The driver
287 will also generate a notice in the boot log before disabling
288 itself if the CPU in question is not capable of rate rounding.
289
290 For details, take a look at <file:Documentation/cpu-freq>.
291
292 If unsure, say N.
Viresh Kumarf41f4812014-11-15 08:50:44 +0530293endif
Viresh Kumar72582672013-04-04 12:54:22 +0000294
Dave Jonesbb0a56e2011-05-19 18:51:07 -0400295endif
296endmenu