Commit | Line | Data |
---|---|---|
bb0a56ec DJ |
1 | menu "CPU Frequency scaling" |
2 | ||
1da177e4 LT |
3 | config CPU_FREQ |
4 | bool "CPU Frequency scaling" | |
83fe27ea | 5 | select SRCU |
1da177e4 LT |
6 | 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 | ||
19 | if CPU_FREQ | |
20 | ||
1e15f295 | 21 | config CPU_FREQ_GOV_COMMON |
e6f03657 | 22 | select IRQ_WORK |
1e15f295 LF |
23 | bool |
24 | ||
2fb4719b LM |
25 | config CPU_FREQ_BOOST_SW |
26 | bool | |
27 | depends on THERMAL | |
28 | ||
1da177e4 | 29 | config CPU_FREQ_STAT |
9101be53 | 30 | tristate "CPU frequency translation statistics" |
9101be53 MF |
31 | 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. | |
1da177e4 LT |
40 | |
41 | config CPU_FREQ_STAT_DETAILS | |
9101be53 MF |
42 | 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. | |
1da177e4 LT |
49 | |
50 | choice | |
51 | prompt "Default CPUFreq governor" | |
559f56c7 | 52 | default CPU_FREQ_DEFAULT_GOV_USERSPACE if ARM_SA1100_CPUFREQ || ARM_SA1110_CPUFREQ |
1da177e4 LT |
53 | 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 | ||
58 | config 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 | ||
30d221db AG |
66 | config CPU_FREQ_DEFAULT_GOV_POWERSAVE |
67 | bool "powersave" | |
30d221db AG |
68 | 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 | ||
1da177e4 LT |
74 | config 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 | |
0211a9c8 | 79 | you to set the CPU frequency manually or when a userspace |
1da177e4 LT |
80 | program shall be able to set the CPU dynamically without having |
81 | to enable the userspace governor manually. | |
82 | ||
1c256245 TR |
83 | config 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 | ||
95 | config 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. | |
1da177e4 LT |
106 | endchoice |
107 | ||
108 | config CPU_FREQ_GOV_PERFORMANCE | |
9101be53 MF |
109 | tristate "'performance' governor" |
110 | help | |
1da177e4 LT |
111 | This cpufreq governor sets the frequency statically to the |
112 | highest available CPU frequency. | |
113 | ||
9101be53 MF |
114 | To compile this driver as a module, choose M here: the |
115 | module will be called cpufreq_performance. | |
116 | ||
1da177e4 LT |
117 | If in doubt, say Y. |
118 | ||
119 | config CPU_FREQ_GOV_POWERSAVE | |
9101be53 MF |
120 | tristate "'powersave' governor" |
121 | help | |
1da177e4 LT |
122 | This cpufreq governor sets the frequency statically to the |
123 | lowest available CPU frequency. | |
124 | ||
9101be53 MF |
125 | To compile this driver as a module, choose M here: the |
126 | module will be called cpufreq_powersave. | |
127 | ||
1da177e4 LT |
128 | If in doubt, say Y. |
129 | ||
130 | config CPU_FREQ_GOV_USERSPACE | |
9101be53 MF |
131 | tristate "'userspace' governor for userspace frequency scaling" |
132 | help | |
1da177e4 | 133 | Enable this cpufreq governor when you either want to set the |
0211a9c8 | 134 | CPU frequency manually or when a userspace program shall |
1da177e4 | 135 | be able to set the CPU dynamically, like on LART |
4c41251e | 136 | <http://www.lartmaker.nl/>. |
1da177e4 | 137 | |
9101be53 MF |
138 | To compile this driver as a module, choose M here: the |
139 | module will be called cpufreq_userspace. | |
140 | ||
1da177e4 LT |
141 | For details, take a look at <file:Documentation/cpu-freq/>. |
142 | ||
143 | If in doubt, say Y. | |
144 | ||
145 | config CPU_FREQ_GOV_ONDEMAND | |
146 | tristate "'ondemand' cpufreq policy governor" | |
1e15f295 | 147 | select CPU_FREQ_GOV_COMMON |
1da177e4 LT |
148 | 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 | ||
9101be53 MF |
156 | To compile this driver as a module, choose M here: the |
157 | module will be called cpufreq_ondemand. | |
158 | ||
1da177e4 LT |
159 | For details, take a look at linux/Documentation/cpu-freq. |
160 | ||
161 | If in doubt, say N. | |
162 | ||
b9170836 DJ |
163 | config CPU_FREQ_GOV_CONSERVATIVE |
164 | tristate "'conservative' cpufreq governor" | |
165 | depends on CPU_FREQ | |
1e15f295 | 166 | select CPU_FREQ_GOV_COMMON |
b9170836 DJ |
167 | 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 | ||
9101be53 MF |
180 | To compile this driver as a module, choose M here: the |
181 | module will be called cpufreq_conservative. | |
182 | ||
b9170836 DJ |
183 | For details, take a look at linux/Documentation/cpu-freq. |
184 | ||
185 | If in doubt, say N. | |
186 | ||
f41f4815 VK |
187 | comment "CPU frequency scaling drivers" |
188 | ||
bbcf0719 VK |
189 | config CPUFREQ_DT |
190 | tristate "Generic DT based cpufreq driver" | |
5fbfbcd3 | 191 | depends on HAVE_CLK && OF |
bbcf0719 | 192 | # if CPU_THERMAL is on and THERMAL=m, CPUFREQ_DT cannot be =y: |
217886d3 | 193 | depends on !CPU_THERMAL || THERMAL |
109df086 | 194 | select PM_OPP |
95ceafd4 | 195 | help |
bbcf0719 | 196 | This adds a generic DT based cpufreq driver for frequency management. |
95ceafd4 SG |
197 | 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 | ||
f41f4815 | 202 | if X86 |
bb0a56ec | 203 | source "drivers/cpufreq/Kconfig.x86" |
f41f4815 | 204 | endif |
bb0a56ec | 205 | |
f41f4815 | 206 | if ARM || ARM64 |
f7d77079 | 207 | source "drivers/cpufreq/Kconfig.arm" |
f41f4815 | 208 | endif |
f7d77079 | 209 | |
f41f4815 VK |
210 | if PPC32 || PPC64 |
211 | source "drivers/cpufreq/Kconfig.powerpc" | |
212 | endif | |
81c720c9 | 213 | |
f41f4815 | 214 | if AVR32 |
81c720c9 VK |
215 | config 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. | |
f41f4815 | 222 | endif |
81c720c9 | 223 | |
f41f4815 | 224 | if IA64 |
ab423e43 VK |
225 | config IA64_ACPI_CPUFREQ |
226 | tristate "ACPI Processor P-States driver" | |
ab423e43 VK |
227 | 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. | |
f41f4815 | 235 | endif |
ab423e43 | 236 | |
f41f4815 | 237 | if MIPS |
7a998935 VK |
238 | config LOONGSON2_CPUFREQ |
239 | tristate "Loongson2 CPUFreq Driver" | |
7a998935 VK |
240 | 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 | ||
a0a22cf1 KC |
250 | config 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. | |
f41f4815 | 259 | endif |
a0a22cf1 | 260 | |
f41f4815 | 261 | if SPARC64 |
764295ae VK |
262 | config SPARC_US3_CPUFREQ |
263 | tristate "UltraSPARC-III CPU Frequency driver" | |
764295ae VK |
264 | 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 | ||
271 | config SPARC_US2E_CPUFREQ | |
272 | tristate "UltraSPARC-IIe CPU Frequency driver" | |
764295ae VK |
273 | 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. | |
f41f4815 | 279 | endif |
764295ae | 280 | |
f41f4815 | 281 | if SUPERH |
7258267e VK |
282 | config SH_CPU_FREQ |
283 | tristate "SuperH CPU Frequency driver" | |
7258267e VK |
284 | 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. | |
f41f4815 | 295 | endif |
7258267e | 296 | |
2f249358 TY |
297 | config QORIQ_CPUFREQ |
298 | tristate "CPU frequency scaling driver for Freescale QorIQ SoCs" | |
299 | depends on OF && COMMON_CLK && (PPC_E500MC || ARM) | |
ddd30ef4 | 300 | depends on !CPU_THERMAL || THERMAL |
2f249358 TY |
301 | 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 | ||
bb0a56ec DJ |
306 | endif |
307 | endmenu |