xref: /linux/drivers/cpufreq/Kconfig (revision a00ec3874e7d326ab2dffbed92faddf6a77a84e9)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2bb0a56ecSDave Jonesmenu "CPU Frequency scaling"
3bb0a56ecSDave Jones
41da177e4SLinus Torvaldsconfig CPU_FREQ
51da177e4SLinus Torvalds	bool "CPU Frequency scaling"
683fe27eaSPranith Kumar	select SRCU
71da177e4SLinus Torvalds	help
81da177e4SLinus Torvalds	  CPU Frequency scaling allows you to change the clock speed of
91da177e4SLinus Torvalds	  CPUs on the fly. This is a nice method to save power, because
101da177e4SLinus Torvalds	  the lower the CPU clock speed, the less power the CPU consumes.
111da177e4SLinus Torvalds
121da177e4SLinus Torvalds	  Note that this driver doesn't automatically change the CPU
131da177e4SLinus Torvalds	  clock speed, you need to either enable a dynamic cpufreq governor
141da177e4SLinus Torvalds	  (see below) after boot, or use a userspace tool.
151da177e4SLinus Torvalds
161da177e4SLinus Torvalds	  For details, take a look at <file:Documentation/cpu-freq>.
171da177e4SLinus Torvalds
181da177e4SLinus Torvalds	  If in doubt, say N.
191da177e4SLinus Torvalds
201da177e4SLinus Torvaldsif CPU_FREQ
211da177e4SLinus Torvalds
222d0c58adSRafael J. Wysockiconfig CPU_FREQ_GOV_ATTR_SET
232d0c58adSRafael J. Wysocki	bool
242d0c58adSRafael J. Wysocki
251e15f295SLarry Fingerconfig CPU_FREQ_GOV_COMMON
262d0c58adSRafael J. Wysocki	select CPU_FREQ_GOV_ATTR_SET
27e6f03657SRafael J. Wysocki	select IRQ_WORK
281e15f295SLarry Finger	bool
291e15f295SLarry Finger
301da177e4SLinus Torvaldsconfig CPU_FREQ_STAT
311aefc75bSRafael J. Wysocki	bool "CPU frequency transition statistics"
321da177e4SLinus Torvalds	help
331aefc75bSRafael J. Wysocki	  Export CPU frequency statistics information through sysfs.
349101be53SMike Frysinger
359101be53SMike Frysinger	  If in doubt, say N.
361da177e4SLinus Torvalds
371da177e4SLinus Torvaldschoice
381da177e4SLinus Torvalds	prompt "Default CPUFreq governor"
39559f56c7SAlexander Shiyan	default CPU_FREQ_DEFAULT_GOV_USERSPACE if ARM_SA1100_CPUFREQ || ARM_SA1110_CPUFREQ
40*a00ec387SRafael J. Wysocki	default CPU_FREQ_DEFAULT_GOV_SCHEDUTIL if X86_INTEL_PSTATE && SMP
411da177e4SLinus Torvalds	default CPU_FREQ_DEFAULT_GOV_PERFORMANCE
421da177e4SLinus Torvalds	help
431da177e4SLinus Torvalds	  This option sets which CPUFreq governor shall be loaded at
44*a00ec387SRafael J. Wysocki	  startup. If in doubt, use the default setting.
451da177e4SLinus Torvalds
461da177e4SLinus Torvaldsconfig CPU_FREQ_DEFAULT_GOV_PERFORMANCE
471da177e4SLinus Torvalds	bool "performance"
481da177e4SLinus Torvalds	select CPU_FREQ_GOV_PERFORMANCE
491da177e4SLinus Torvalds	help
501da177e4SLinus Torvalds	  Use the CPUFreq governor 'performance' as default. This sets
511da177e4SLinus Torvalds	  the frequency statically to the highest frequency supported by
521da177e4SLinus Torvalds	  the CPU.
531da177e4SLinus Torvalds
5430d221dbSAlessandro Guidoconfig CPU_FREQ_DEFAULT_GOV_POWERSAVE
5530d221dbSAlessandro Guido	bool "powersave"
5630d221dbSAlessandro Guido	select CPU_FREQ_GOV_POWERSAVE
5730d221dbSAlessandro Guido	help
5830d221dbSAlessandro Guido	  Use the CPUFreq governor 'powersave' as default. This sets
5930d221dbSAlessandro Guido	  the frequency statically to the lowest frequency supported by
6030d221dbSAlessandro Guido	  the CPU.
6130d221dbSAlessandro Guido
621da177e4SLinus Torvaldsconfig CPU_FREQ_DEFAULT_GOV_USERSPACE
631da177e4SLinus Torvalds	bool "userspace"
641da177e4SLinus Torvalds	select CPU_FREQ_GOV_USERSPACE
651da177e4SLinus Torvalds	help
661da177e4SLinus Torvalds	  Use the CPUFreq governor 'userspace' as default. This allows
670211a9c8SFrederik Schwarzer	  you to set the CPU frequency manually or when a userspace
681da177e4SLinus Torvalds	  program shall be able to set the CPU dynamically without having
691da177e4SLinus Torvalds	  to enable the userspace governor manually.
701da177e4SLinus Torvalds
711c256245SThomas Renningerconfig CPU_FREQ_DEFAULT_GOV_ONDEMAND
721c256245SThomas Renninger	bool "ondemand"
731c256245SThomas Renninger	select CPU_FREQ_GOV_ONDEMAND
741c256245SThomas Renninger	select CPU_FREQ_GOV_PERFORMANCE
751c256245SThomas Renninger	help
761c256245SThomas Renninger	  Use the CPUFreq governor 'ondemand' as default. This allows
771c256245SThomas Renninger	  you to get a full dynamic frequency capable system by simply
781c256245SThomas Renninger	  loading your cpufreq low-level hardware driver.
791c256245SThomas Renninger	  Be aware that not all cpufreq drivers support the ondemand
801c256245SThomas Renninger	  governor. If unsure have a look at the help section of the
811c256245SThomas Renninger	  driver. Fallback governor will be the performance governor.
821c256245SThomas Renninger
831c256245SThomas Renningerconfig CPU_FREQ_DEFAULT_GOV_CONSERVATIVE
841c256245SThomas Renninger	bool "conservative"
851c256245SThomas Renninger	select CPU_FREQ_GOV_CONSERVATIVE
861c256245SThomas Renninger	select CPU_FREQ_GOV_PERFORMANCE
871c256245SThomas Renninger	help
881c256245SThomas Renninger	  Use the CPUFreq governor 'conservative' as default. This allows
891c256245SThomas Renninger	  you to get a full dynamic frequency capable system by simply
901c256245SThomas Renninger	  loading your cpufreq low-level hardware driver.
911c256245SThomas Renninger	  Be aware that not all cpufreq drivers support the conservative
921c256245SThomas Renninger	  governor. If unsure have a look at the help section of the
931c256245SThomas Renninger	  driver. Fallback governor will be the performance governor.
949bdcb44eSRafael J. Wysocki
959bdcb44eSRafael J. Wysockiconfig CPU_FREQ_DEFAULT_GOV_SCHEDUTIL
969bdcb44eSRafael J. Wysocki	bool "schedutil"
97cfe9492fSArnd Bergmann	depends on SMP
989bdcb44eSRafael J. Wysocki	select CPU_FREQ_GOV_SCHEDUTIL
999bdcb44eSRafael J. Wysocki	select CPU_FREQ_GOV_PERFORMANCE
1009bdcb44eSRafael J. Wysocki	help
1019bdcb44eSRafael J. Wysocki	  Use the 'schedutil' CPUFreq governor by default. If unsure,
1029bdcb44eSRafael J. Wysocki	  have a look at the help section of that governor. The fallback
1039bdcb44eSRafael J. Wysocki	  governor will be 'performance'.
1049bdcb44eSRafael J. Wysocki
1051da177e4SLinus Torvaldsendchoice
1061da177e4SLinus Torvalds
1071da177e4SLinus Torvaldsconfig CPU_FREQ_GOV_PERFORMANCE
1081da177e4SLinus Torvalds	tristate "'performance' governor"
1091da177e4SLinus Torvalds	help
1101da177e4SLinus Torvalds	  This cpufreq governor sets the frequency statically to the
1111da177e4SLinus Torvalds	  highest available CPU frequency.
1121da177e4SLinus Torvalds
1139101be53SMike Frysinger	  To compile this driver as a module, choose M here: the
1149101be53SMike Frysinger	  module will be called cpufreq_performance.
1159101be53SMike Frysinger
1161da177e4SLinus Torvalds	  If in doubt, say Y.
1171da177e4SLinus Torvalds
1181da177e4SLinus Torvaldsconfig CPU_FREQ_GOV_POWERSAVE
1191da177e4SLinus Torvalds	tristate "'powersave' governor"
1201da177e4SLinus Torvalds	help
1211da177e4SLinus Torvalds	  This cpufreq governor sets the frequency statically to the
1221da177e4SLinus Torvalds	  lowest available CPU frequency.
1231da177e4SLinus Torvalds
1249101be53SMike Frysinger	  To compile this driver as a module, choose M here: the
1259101be53SMike Frysinger	  module will be called cpufreq_powersave.
1269101be53SMike Frysinger
1271da177e4SLinus Torvalds	  If in doubt, say Y.
1281da177e4SLinus Torvalds
1291da177e4SLinus Torvaldsconfig CPU_FREQ_GOV_USERSPACE
1301da177e4SLinus Torvalds	tristate "'userspace' governor for userspace frequency scaling"
1311da177e4SLinus Torvalds	help
1321da177e4SLinus Torvalds	  Enable this cpufreq governor when you either want to set the
1330211a9c8SFrederik Schwarzer	  CPU frequency manually or when a userspace program shall
1341da177e4SLinus Torvalds	  be able to set the CPU dynamically, like on LART
1354c41251eSErik Mouw	  <http://www.lartmaker.nl/>.
1361da177e4SLinus Torvalds
1379101be53SMike Frysinger	  To compile this driver as a module, choose M here: the
1389101be53SMike Frysinger	  module will be called cpufreq_userspace.
1399101be53SMike Frysinger
1401da177e4SLinus Torvalds	  For details, take a look at <file:Documentation/cpu-freq/>.
1411da177e4SLinus Torvalds
1421da177e4SLinus Torvalds	  If in doubt, say Y.
1431da177e4SLinus Torvalds
1441da177e4SLinus Torvaldsconfig CPU_FREQ_GOV_ONDEMAND
1451da177e4SLinus Torvalds	tristate "'ondemand' cpufreq policy governor"
1461e15f295SLarry Finger	select CPU_FREQ_GOV_COMMON
1471da177e4SLinus Torvalds	help
1481da177e4SLinus Torvalds	  'ondemand' - This driver adds a dynamic cpufreq policy governor.
1491da177e4SLinus Torvalds	  The governor does a periodic polling and
1501da177e4SLinus Torvalds	  changes frequency based on the CPU utilization.
1511da177e4SLinus Torvalds	  The support for this governor depends on CPU capability to
1521da177e4SLinus Torvalds	  do fast frequency switching (i.e, very low latency frequency
1531da177e4SLinus Torvalds	  transitions).
1541da177e4SLinus Torvalds
1559101be53SMike Frysinger	  To compile this driver as a module, choose M here: the
1569101be53SMike Frysinger	  module will be called cpufreq_ondemand.
1579101be53SMike Frysinger
1581da177e4SLinus Torvalds	  For details, take a look at linux/Documentation/cpu-freq.
1591da177e4SLinus Torvalds
1601da177e4SLinus Torvalds	  If in doubt, say N.
1611da177e4SLinus Torvalds
162b9170836SDave Jonesconfig CPU_FREQ_GOV_CONSERVATIVE
163b9170836SDave Jones	tristate "'conservative' cpufreq governor"
164b9170836SDave Jones	depends on CPU_FREQ
1651e15f295SLarry Finger	select CPU_FREQ_GOV_COMMON
166b9170836SDave Jones	help
167b9170836SDave Jones	  'conservative' - this driver is rather similar to the 'ondemand'
168b9170836SDave Jones	  governor both in its source code and its purpose, the difference is
169b9170836SDave Jones	  its optimisation for better suitability in a battery powered
170b9170836SDave Jones	  environment.  The frequency is gracefully increased and decreased
171b9170836SDave Jones	  rather than jumping to 100% when speed is required.
172b9170836SDave Jones
173b9170836SDave Jones	  If you have a desktop machine then you should really be considering
174b9170836SDave Jones	  the 'ondemand' governor instead, however if you are using a laptop,
175b9170836SDave Jones	  PDA or even an AMD64 based computer (due to the unacceptable
176b9170836SDave Jones	  step-by-step latency issues between the minimum and maximum frequency
177b9170836SDave Jones	  transitions in the CPU) you will probably want to use this governor.
178b9170836SDave Jones
1799101be53SMike Frysinger	  To compile this driver as a module, choose M here: the
1809101be53SMike Frysinger	  module will be called cpufreq_conservative.
1819101be53SMike Frysinger
182b9170836SDave Jones	  For details, take a look at linux/Documentation/cpu-freq.
183b9170836SDave Jones
184b9170836SDave Jones	  If in doubt, say N.
185b9170836SDave Jones
1869bdcb44eSRafael J. Wysockiconfig CPU_FREQ_GOV_SCHEDUTIL
18758919e83SRafael J. Wysocki	bool "'schedutil' cpufreq policy governor"
188bf7cdff1SRafael J. Wysocki	depends on CPU_FREQ && SMP
1899bdcb44eSRafael J. Wysocki	select CPU_FREQ_GOV_ATTR_SET
1909bdcb44eSRafael J. Wysocki	select IRQ_WORK
1919bdcb44eSRafael J. Wysocki	help
1929bdcb44eSRafael J. Wysocki	  This governor makes decisions based on the utilization data provided
1939bdcb44eSRafael J. Wysocki	  by the scheduler.  It sets the CPU frequency to be proportional to
1949bdcb44eSRafael J. Wysocki	  the utilization/capacity ratio coming from the scheduler.  If the
1959bdcb44eSRafael J. Wysocki	  utilization is frequency-invariant, the new frequency is also
1969bdcb44eSRafael J. Wysocki	  proportional to the maximum available frequency.  If that is not the
1979bdcb44eSRafael J. Wysocki	  case, it is proportional to the current frequency of the CPU.  The
1989bdcb44eSRafael J. Wysocki	  frequency tipping point is at utilization/capacity equal to 80% in
1999bdcb44eSRafael J. Wysocki	  both cases.
2009bdcb44eSRafael J. Wysocki
2019bdcb44eSRafael J. Wysocki	  If in doubt, say N.
2029bdcb44eSRafael J. Wysocki
203f41f4815SViresh Kumarcomment "CPU frequency scaling drivers"
204f41f4815SViresh Kumar
205bbcf0719SViresh Kumarconfig CPUFREQ_DT
206bbcf0719SViresh Kumar	tristate "Generic DT based cpufreq driver"
2075fbfbcd3SViresh Kumar	depends on HAVE_CLK && OF
208f56aad1dSViresh Kumar	select CPUFREQ_DT_PLATDEV
209109df086SMark Brown	select PM_OPP
21095ceafd4SShawn Guo	help
211bbcf0719SViresh Kumar	  This adds a generic DT based cpufreq driver for frequency management.
21295ceafd4SShawn Guo	  It supports both uniprocessor (UP) and symmetric multiprocessor (SMP)
21333cc4fc1SViresh Kumar	  systems.
21495ceafd4SShawn Guo
21595ceafd4SShawn Guo	  If in doubt, say N.
21695ceafd4SShawn Guo
217f56aad1dSViresh Kumarconfig CPUFREQ_DT_PLATDEV
218f56aad1dSViresh Kumar	bool
219f56aad1dSViresh Kumar	help
220f56aad1dSViresh Kumar	  This adds a generic DT based cpufreq platdev driver for frequency
221f56aad1dSViresh Kumar	  management.  This creates a 'cpufreq-dt' platform device, on the
222f56aad1dSViresh Kumar	  supported platforms.
223f56aad1dSViresh Kumar
224f56aad1dSViresh Kumar	  If in doubt, say N.
225f56aad1dSViresh Kumar
226f41f4815SViresh Kumarif X86
227bb0a56ecSDave Jonessource "drivers/cpufreq/Kconfig.x86"
228f41f4815SViresh Kumarendif
229bb0a56ecSDave Jones
230f41f4815SViresh Kumarif ARM || ARM64
231f7d77079SKukjin Kimsource "drivers/cpufreq/Kconfig.arm"
232f41f4815SViresh Kumarendif
233f7d77079SKukjin Kim
234f41f4815SViresh Kumarif PPC32 || PPC64
235f41f4815SViresh Kumarsource "drivers/cpufreq/Kconfig.powerpc"
236f41f4815SViresh Kumarendif
23781c720c9SViresh Kumar
238f41f4815SViresh Kumarif IA64
239ab423e43SViresh Kumarconfig IA64_ACPI_CPUFREQ
240ab423e43SViresh Kumar	tristate "ACPI Processor P-States driver"
241ab423e43SViresh Kumar	depends on ACPI_PROCESSOR
242ab423e43SViresh Kumar	help
243ab423e43SViresh Kumar	This driver adds a CPUFreq driver which utilizes the ACPI
244ab423e43SViresh Kumar	Processor Performance States.
245ab423e43SViresh Kumar
246ab423e43SViresh Kumar	For details, take a look at <file:Documentation/cpu-freq/>.
247ab423e43SViresh Kumar
248ab423e43SViresh Kumar	If in doubt, say N.
249f41f4815SViresh Kumarendif
250ab423e43SViresh Kumar
251f41f4815SViresh Kumarif MIPS
252cdb56cbfSMarkus Mayerconfig BMIPS_CPUFREQ
253cdb56cbfSMarkus Mayer	tristate "BMIPS CPUfreq Driver"
254cdb56cbfSMarkus Mayer	help
255cdb56cbfSMarkus Mayer	  This option adds a CPUfreq driver for BMIPS processors with
256cdb56cbfSMarkus Mayer	  support for configurable CPU frequency.
257cdb56cbfSMarkus Mayer
258cdb56cbfSMarkus Mayer	  For now, BMIPS5 chips are supported (such as the Broadcom 7425).
259cdb56cbfSMarkus Mayer
260cdb56cbfSMarkus Mayer	  If in doubt, say N.
261cdb56cbfSMarkus Mayer
2627a998935SViresh Kumarconfig LOONGSON2_CPUFREQ
2637a998935SViresh Kumar	tristate "Loongson2 CPUFreq Driver"
2640d307935SJames Hogan	depends on LEMOTE_MACH2F
2657a998935SViresh Kumar	help
2667a998935SViresh Kumar	  This option adds a CPUFreq driver for loongson processors which
2677a998935SViresh Kumar	  support software configurable cpu frequency.
2687a998935SViresh Kumar
2697a998935SViresh Kumar	  Loongson2F and it's successors support this feature.
2707a998935SViresh Kumar
2717a998935SViresh Kumar	  For details, take a look at <file:Documentation/cpu-freq/>.
2727a998935SViresh Kumar
2737a998935SViresh Kumar	  If in doubt, say N.
2747a998935SViresh Kumar
275a0a22cf1SKelvin Cheungconfig LOONGSON1_CPUFREQ
276a0a22cf1SKelvin Cheung	tristate "Loongson1 CPUFreq Driver"
2770d307935SJames Hogan	depends on LOONGSON1_LS1B
278a0a22cf1SKelvin Cheung	help
279a0a22cf1SKelvin Cheung	  This option adds a CPUFreq driver for loongson1 processors which
280a0a22cf1SKelvin Cheung	  support software configurable cpu frequency.
281a0a22cf1SKelvin Cheung
282a0a22cf1SKelvin Cheung	  For details, take a look at <file:Documentation/cpu-freq/>.
283a0a22cf1SKelvin Cheung
284a0a22cf1SKelvin Cheung	  If in doubt, say N.
285f41f4815SViresh Kumarendif
286a0a22cf1SKelvin Cheung
287f41f4815SViresh Kumarif SPARC64
288764295aeSViresh Kumarconfig SPARC_US3_CPUFREQ
289764295aeSViresh Kumar	tristate "UltraSPARC-III CPU Frequency driver"
290764295aeSViresh Kumar	help
291764295aeSViresh Kumar	  This adds the CPUFreq driver for UltraSPARC-III processors.
292764295aeSViresh Kumar
293764295aeSViresh Kumar	  For details, take a look at <file:Documentation/cpu-freq>.
294764295aeSViresh Kumar
295764295aeSViresh Kumar	  If in doubt, say N.
296764295aeSViresh Kumar
297764295aeSViresh Kumarconfig SPARC_US2E_CPUFREQ
298764295aeSViresh Kumar	tristate "UltraSPARC-IIe CPU Frequency driver"
299764295aeSViresh Kumar	help
300764295aeSViresh Kumar	  This adds the CPUFreq driver for UltraSPARC-IIe processors.
301764295aeSViresh Kumar
302764295aeSViresh Kumar	  For details, take a look at <file:Documentation/cpu-freq>.
303764295aeSViresh Kumar
304764295aeSViresh Kumar	  If in doubt, say N.
305f41f4815SViresh Kumarendif
306764295aeSViresh Kumar
307f41f4815SViresh Kumarif SUPERH
3087258267eSViresh Kumarconfig SH_CPU_FREQ
3097258267eSViresh Kumar	tristate "SuperH CPU Frequency driver"
3107258267eSViresh Kumar	help
3117258267eSViresh Kumar	  This adds the cpufreq driver for SuperH. Any CPU that supports
3127258267eSViresh Kumar	  clock rate rounding through the clock framework can use this
3137258267eSViresh Kumar	  driver. While it will make the kernel slightly larger, this is
3147258267eSViresh Kumar	  harmless for CPUs that don't support rate rounding. The driver
3157258267eSViresh Kumar	  will also generate a notice in the boot log before disabling
3167258267eSViresh Kumar	  itself if the CPU in question is not capable of rate rounding.
3177258267eSViresh Kumar
3187258267eSViresh Kumar	  For details, take a look at <file:Documentation/cpu-freq>.
3197258267eSViresh Kumar
3207258267eSViresh Kumar	  If unsure, say N.
321f41f4815SViresh Kumarendif
3227258267eSViresh Kumar
3232f249358STang Yuantianconfig QORIQ_CPUFREQ
3242f249358STang Yuantian	tristate "CPU frequency scaling driver for Freescale QorIQ SoCs"
3255026ac23STang Yuantian	depends on OF && COMMON_CLK && (PPC_E500MC || ARM || ARM64)
3262f249358STang Yuantian	select CLK_QORIQ
3272f249358STang Yuantian	help
3282f249358STang Yuantian	  This adds the CPUFreq driver support for Freescale QorIQ SoCs
3292f249358STang Yuantian	  which are capable of changing the CPU's frequency dynamically.
3302f249358STang Yuantian
331bb0a56ecSDave Jonesendif
332bb0a56ecSDave Jonesendmenu
333