1 # SPDX-License-Identifier: GPL-2.0-only
2 menu "CPU Frequency scaling"
5 bool "CPU Frequency scaling"
8 CPU Frequency scaling allows you to change the clock speed of
9 CPUs on the fly. This is a nice method to save power, because
10 the lower the CPU clock speed, the less power the CPU consumes.
12 Note that this driver doesn't automatically change the CPU
13 clock speed, you need to either enable a dynamic cpufreq governor
14 (see below) after boot, or use a userspace tool.
16 For details, take a look at <file:Documentation/cpu-freq>.
22 config CPU_FREQ_GOV_ATTR_SET
25 config CPU_FREQ_GOV_COMMON
26 select CPU_FREQ_GOV_ATTR_SET
31 bool "CPU frequency transition statistics"
33 Export CPU frequency statistics information through sysfs.
38 prompt "Default CPUFreq governor"
39 default CPU_FREQ_DEFAULT_GOV_USERSPACE if ARM_SA1100_CPUFREQ || ARM_SA1110_CPUFREQ
40 default CPU_FREQ_DEFAULT_GOV_PERFORMANCE
42 This option sets which CPUFreq governor shall be loaded at
43 startup. If in doubt, select 'performance'.
45 config CPU_FREQ_DEFAULT_GOV_PERFORMANCE
47 select CPU_FREQ_GOV_PERFORMANCE
49 Use the CPUFreq governor 'performance' as default. This sets
50 the frequency statically to the highest frequency supported by
53 config CPU_FREQ_DEFAULT_GOV_POWERSAVE
55 select CPU_FREQ_GOV_POWERSAVE
57 Use the CPUFreq governor 'powersave' as default. This sets
58 the frequency statically to the lowest frequency supported by
61 config CPU_FREQ_DEFAULT_GOV_USERSPACE
63 select CPU_FREQ_GOV_USERSPACE
65 Use the CPUFreq governor 'userspace' as default. This allows
66 you to set the CPU frequency manually or when a userspace
67 program shall be able to set the CPU dynamically without having
68 to enable the userspace governor manually.
70 config CPU_FREQ_DEFAULT_GOV_ONDEMAND
72 select CPU_FREQ_GOV_ONDEMAND
73 select CPU_FREQ_GOV_PERFORMANCE
75 Use the CPUFreq governor 'ondemand' as default. This allows
76 you to get a full dynamic frequency capable system by simply
77 loading your cpufreq low-level hardware driver.
78 Be aware that not all cpufreq drivers support the ondemand
79 governor. If unsure have a look at the help section of the
80 driver. Fallback governor will be the performance governor.
82 config CPU_FREQ_DEFAULT_GOV_CONSERVATIVE
84 select CPU_FREQ_GOV_CONSERVATIVE
85 select CPU_FREQ_GOV_PERFORMANCE
87 Use the CPUFreq governor 'conservative' as default. This allows
88 you to get a full dynamic frequency capable system by simply
89 loading your cpufreq low-level hardware driver.
90 Be aware that not all cpufreq drivers support the conservative
91 governor. If unsure have a look at the help section of the
92 driver. Fallback governor will be the performance governor.
94 config CPU_FREQ_DEFAULT_GOV_SCHEDUTIL
97 select CPU_FREQ_GOV_SCHEDUTIL
98 select CPU_FREQ_GOV_PERFORMANCE
100 Use the 'schedutil' CPUFreq governor by default. If unsure,
101 have a look at the help section of that governor. The fallback
102 governor will be 'performance'.
106 config CPU_FREQ_GOV_PERFORMANCE
107 tristate "'performance' governor"
109 This cpufreq governor sets the frequency statically to the
110 highest available CPU frequency.
112 To compile this driver as a module, choose M here: the
113 module will be called cpufreq_performance.
117 config CPU_FREQ_GOV_POWERSAVE
118 tristate "'powersave' governor"
120 This cpufreq governor sets the frequency statically to the
121 lowest available CPU frequency.
123 To compile this driver as a module, choose M here: the
124 module will be called cpufreq_powersave.
128 config CPU_FREQ_GOV_USERSPACE
129 tristate "'userspace' governor for userspace frequency scaling"
131 Enable this cpufreq governor when you either want to set the
132 CPU frequency manually or when a userspace program shall
133 be able to set the CPU dynamically, like on LART
134 <http://www.lartmaker.nl/>.
136 To compile this driver as a module, choose M here: the
137 module will be called cpufreq_userspace.
139 For details, take a look at <file:Documentation/cpu-freq/>.
143 config CPU_FREQ_GOV_ONDEMAND
144 tristate "'ondemand' cpufreq policy governor"
145 select CPU_FREQ_GOV_COMMON
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
154 To compile this driver as a module, choose M here: the
155 module will be called cpufreq_ondemand.
157 For details, take a look at linux/Documentation/cpu-freq.
161 config CPU_FREQ_GOV_CONSERVATIVE
162 tristate "'conservative' cpufreq governor"
164 select CPU_FREQ_GOV_COMMON
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.
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.
178 To compile this driver as a module, choose M here: the
179 module will be called cpufreq_conservative.
181 For details, take a look at linux/Documentation/cpu-freq.
185 config CPU_FREQ_GOV_SCHEDUTIL
186 bool "'schedutil' cpufreq policy governor"
187 depends on CPU_FREQ && SMP
188 select CPU_FREQ_GOV_ATTR_SET
191 This governor makes decisions based on the utilization data provided
192 by the scheduler. It sets the CPU frequency to be proportional to
193 the utilization/capacity ratio coming from the scheduler. If the
194 utilization is frequency-invariant, the new frequency is also
195 proportional to the maximum available frequency. If that is not the
196 case, it is proportional to the current frequency of the CPU. The
197 frequency tipping point is at utilization/capacity equal to 80% in
202 comment "CPU frequency scaling drivers"
205 tristate "Generic DT based cpufreq driver"
206 depends on HAVE_CLK && OF
207 select CPUFREQ_DT_PLATDEV
210 This adds a generic DT based cpufreq driver for frequency management.
211 It supports both uniprocessor (UP) and symmetric multiprocessor (SMP)
216 config CPUFREQ_DT_PLATDEV
219 This adds a generic DT based cpufreq platdev driver for frequency
220 management. This creates a 'cpufreq-dt' platform device, on the
226 source "drivers/cpufreq/Kconfig.x86"
230 source "drivers/cpufreq/Kconfig.arm"
234 source "drivers/cpufreq/Kconfig.powerpc"
238 config IA64_ACPI_CPUFREQ
239 tristate "ACPI Processor P-States driver"
240 depends on ACPI_PROCESSOR
242 This driver adds a CPUFreq driver which utilizes the ACPI
243 Processor Performance States.
245 For details, take a look at <file:Documentation/cpu-freq/>.
252 tristate "BMIPS CPUfreq Driver"
254 This option adds a CPUfreq driver for BMIPS processors with
255 support for configurable CPU frequency.
257 For now, BMIPS5 chips are supported (such as the Broadcom 7425).
261 config LOONGSON2_CPUFREQ
262 tristate "Loongson2 CPUFreq Driver"
263 depends on LEMOTE_MACH2F
265 This option adds a CPUFreq driver for loongson processors which
266 support software configurable cpu frequency.
268 Loongson2F and it's successors support this feature.
270 For details, take a look at <file:Documentation/cpu-freq/>.
274 config LOONGSON1_CPUFREQ
275 tristate "Loongson1 CPUFreq Driver"
276 depends on LOONGSON1_LS1B
278 This option adds a CPUFreq driver for loongson1 processors which
279 support software configurable cpu frequency.
281 For details, take a look at <file:Documentation/cpu-freq/>.
287 config SPARC_US3_CPUFREQ
288 tristate "UltraSPARC-III CPU Frequency driver"
290 This adds the CPUFreq driver for UltraSPARC-III processors.
292 For details, take a look at <file:Documentation/cpu-freq>.
296 config SPARC_US2E_CPUFREQ
297 tristate "UltraSPARC-IIe CPU Frequency driver"
299 This adds the CPUFreq driver for UltraSPARC-IIe processors.
301 For details, take a look at <file:Documentation/cpu-freq>.
308 tristate "SuperH CPU Frequency driver"
310 This adds the cpufreq driver for SuperH. Any CPU that supports
311 clock rate rounding through the clock framework can use this
312 driver. While it will make the kernel slightly larger, this is
313 harmless for CPUs that don't support rate rounding. The driver
314 will also generate a notice in the boot log before disabling
315 itself if the CPU in question is not capable of rate rounding.
317 For details, take a look at <file:Documentation/cpu-freq>.
323 tristate "CPU frequency scaling driver for Freescale QorIQ SoCs"
324 depends on OF && COMMON_CLK && (PPC_E500MC || ARM || ARM64)
327 This adds the CPUFreq driver support for Freescale QorIQ SoCs
328 which are capable of changing the CPU's frequency dynamically.