xref: /linux/drivers/cpufreq/Kconfig (revision 1aefc75b2449eb68a6fc3ca932e2a4ee353b748d)
1bb0a56ecSDave Jonesmenu "CPU Frequency scaling"
2bb0a56ecSDave Jones
31da177e4SLinus Torvaldsconfig CPU_FREQ
41da177e4SLinus Torvalds	bool "CPU Frequency scaling"
583fe27eaSPranith Kumar	select SRCU
61da177e4SLinus Torvalds	help
71da177e4SLinus Torvalds	  CPU Frequency scaling allows you to change the clock speed of
81da177e4SLinus Torvalds	  CPUs on the fly. This is a nice method to save power, because
91da177e4SLinus Torvalds	  the lower the CPU clock speed, the less power the CPU consumes.
101da177e4SLinus Torvalds
111da177e4SLinus Torvalds	  Note that this driver doesn't automatically change the CPU
121da177e4SLinus Torvalds	  clock speed, you need to either enable a dynamic cpufreq governor
131da177e4SLinus Torvalds	  (see below) after boot, or use a userspace tool.
141da177e4SLinus Torvalds
151da177e4SLinus Torvalds	  For details, take a look at <file:Documentation/cpu-freq>.
161da177e4SLinus Torvalds
171da177e4SLinus Torvalds	  If in doubt, say N.
181da177e4SLinus Torvalds
191da177e4SLinus Torvaldsif CPU_FREQ
201da177e4SLinus Torvalds
212d0c58adSRafael J. Wysockiconfig CPU_FREQ_GOV_ATTR_SET
222d0c58adSRafael J. Wysocki	bool
232d0c58adSRafael J. Wysocki
241e15f295SLarry Fingerconfig CPU_FREQ_GOV_COMMON
252d0c58adSRafael J. Wysocki	select CPU_FREQ_GOV_ATTR_SET
26e6f03657SRafael J. Wysocki	select IRQ_WORK
271e15f295SLarry Finger	bool
281e15f295SLarry Finger
292fb4719bSLukasz Majewskiconfig CPU_FREQ_BOOST_SW
302fb4719bSLukasz Majewski	bool
312fb4719bSLukasz Majewski	depends on THERMAL
322fb4719bSLukasz Majewski
331da177e4SLinus Torvaldsconfig CPU_FREQ_STAT
34*1aefc75bSRafael J. Wysocki	bool "CPU frequency transition statistics"
351da177e4SLinus Torvalds	default y
361da177e4SLinus Torvalds	help
37*1aefc75bSRafael J. Wysocki	  Export CPU frequency statistics information through sysfs.
389101be53SMike Frysinger
399101be53SMike Frysinger	  If in doubt, say N.
401da177e4SLinus Torvalds
411da177e4SLinus Torvaldsconfig CPU_FREQ_STAT_DETAILS
42*1aefc75bSRafael J. Wysocki	bool "CPU frequency transition statistics details"
431da177e4SLinus Torvalds	depends on CPU_FREQ_STAT
441da177e4SLinus Torvalds	help
45*1aefc75bSRafael J. Wysocki	  Show detailed CPU frequency transition table in sysfs.
469101be53SMike Frysinger
479101be53SMike Frysinger	  If in doubt, say N.
481da177e4SLinus Torvalds
491da177e4SLinus Torvaldschoice
501da177e4SLinus Torvalds	prompt "Default CPUFreq governor"
51559f56c7SAlexander Shiyan	default CPU_FREQ_DEFAULT_GOV_USERSPACE if ARM_SA1100_CPUFREQ || ARM_SA1110_CPUFREQ
521da177e4SLinus Torvalds	default CPU_FREQ_DEFAULT_GOV_PERFORMANCE
531da177e4SLinus Torvalds	help
541da177e4SLinus Torvalds	  This option sets which CPUFreq governor shall be loaded at
551da177e4SLinus Torvalds	  startup. If in doubt, select 'performance'.
561da177e4SLinus Torvalds
571da177e4SLinus Torvaldsconfig CPU_FREQ_DEFAULT_GOV_PERFORMANCE
581da177e4SLinus Torvalds	bool "performance"
591da177e4SLinus Torvalds	select CPU_FREQ_GOV_PERFORMANCE
601da177e4SLinus Torvalds	help
611da177e4SLinus Torvalds	  Use the CPUFreq governor 'performance' as default. This sets
621da177e4SLinus Torvalds	  the frequency statically to the highest frequency supported by
631da177e4SLinus Torvalds	  the CPU.
641da177e4SLinus Torvalds
6530d221dbSAlessandro Guidoconfig CPU_FREQ_DEFAULT_GOV_POWERSAVE
6630d221dbSAlessandro Guido	bool "powersave"
6730d221dbSAlessandro Guido	select CPU_FREQ_GOV_POWERSAVE
6830d221dbSAlessandro Guido	help
6930d221dbSAlessandro Guido	  Use the CPUFreq governor 'powersave' as default. This sets
7030d221dbSAlessandro Guido	  the frequency statically to the lowest frequency supported by
7130d221dbSAlessandro Guido	  the CPU.
7230d221dbSAlessandro Guido
731da177e4SLinus Torvaldsconfig CPU_FREQ_DEFAULT_GOV_USERSPACE
741da177e4SLinus Torvalds	bool "userspace"
751da177e4SLinus Torvalds	select CPU_FREQ_GOV_USERSPACE
761da177e4SLinus Torvalds	help
771da177e4SLinus Torvalds	  Use the CPUFreq governor 'userspace' as default. This allows
780211a9c8SFrederik Schwarzer	  you to set the CPU frequency manually or when a userspace
791da177e4SLinus Torvalds	  program shall be able to set the CPU dynamically without having
801da177e4SLinus Torvalds	  to enable the userspace governor manually.
811da177e4SLinus Torvalds
821c256245SThomas Renningerconfig CPU_FREQ_DEFAULT_GOV_ONDEMAND
831c256245SThomas Renninger	bool "ondemand"
841c256245SThomas Renninger	select CPU_FREQ_GOV_ONDEMAND
851c256245SThomas Renninger	select CPU_FREQ_GOV_PERFORMANCE
861c256245SThomas Renninger	help
871c256245SThomas Renninger	  Use the CPUFreq governor 'ondemand' as default. This allows
881c256245SThomas Renninger	  you to get a full dynamic frequency capable system by simply
891c256245SThomas Renninger	  loading your cpufreq low-level hardware driver.
901c256245SThomas Renninger	  Be aware that not all cpufreq drivers support the ondemand
911c256245SThomas Renninger	  governor. If unsure have a look at the help section of the
921c256245SThomas Renninger	  driver. Fallback governor will be the performance governor.
931c256245SThomas Renninger
941c256245SThomas Renningerconfig CPU_FREQ_DEFAULT_GOV_CONSERVATIVE
951c256245SThomas Renninger	bool "conservative"
961c256245SThomas Renninger	select CPU_FREQ_GOV_CONSERVATIVE
971c256245SThomas Renninger	select CPU_FREQ_GOV_PERFORMANCE
981c256245SThomas Renninger	help
991c256245SThomas Renninger	  Use the CPUFreq governor 'conservative' as default. This allows
1001c256245SThomas Renninger	  you to get a full dynamic frequency capable system by simply
1011c256245SThomas Renninger	  loading your cpufreq low-level hardware driver.
1021c256245SThomas Renninger	  Be aware that not all cpufreq drivers support the conservative
1031c256245SThomas Renninger	  governor. If unsure have a look at the help section of the
1041c256245SThomas Renninger	  driver. Fallback governor will be the performance governor.
1059bdcb44eSRafael J. Wysocki
1069bdcb44eSRafael J. Wysockiconfig CPU_FREQ_DEFAULT_GOV_SCHEDUTIL
1079bdcb44eSRafael J. Wysocki	bool "schedutil"
108cfe9492fSArnd Bergmann	depends on SMP
1099bdcb44eSRafael J. Wysocki	select CPU_FREQ_GOV_SCHEDUTIL
1109bdcb44eSRafael J. Wysocki	select CPU_FREQ_GOV_PERFORMANCE
1119bdcb44eSRafael J. Wysocki	help
1129bdcb44eSRafael J. Wysocki	  Use the 'schedutil' CPUFreq governor by default. If unsure,
1139bdcb44eSRafael J. Wysocki	  have a look at the help section of that governor. The fallback
1149bdcb44eSRafael J. Wysocki	  governor will be 'performance'.
1159bdcb44eSRafael J. Wysocki
1161da177e4SLinus Torvaldsendchoice
1171da177e4SLinus Torvalds
1181da177e4SLinus Torvaldsconfig CPU_FREQ_GOV_PERFORMANCE
1191da177e4SLinus Torvalds	tristate "'performance' governor"
1201da177e4SLinus Torvalds	help
1211da177e4SLinus Torvalds	  This cpufreq governor sets the frequency statically to the
1221da177e4SLinus Torvalds	  highest 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_performance.
1269101be53SMike Frysinger
1271da177e4SLinus Torvalds	  If in doubt, say Y.
1281da177e4SLinus Torvalds
1291da177e4SLinus Torvaldsconfig CPU_FREQ_GOV_POWERSAVE
1301da177e4SLinus Torvalds	tristate "'powersave' governor"
1311da177e4SLinus Torvalds	help
1321da177e4SLinus Torvalds	  This cpufreq governor sets the frequency statically to the
1331da177e4SLinus Torvalds	  lowest available CPU frequency.
1341da177e4SLinus Torvalds
1359101be53SMike Frysinger	  To compile this driver as a module, choose M here: the
1369101be53SMike Frysinger	  module will be called cpufreq_powersave.
1379101be53SMike Frysinger
1381da177e4SLinus Torvalds	  If in doubt, say Y.
1391da177e4SLinus Torvalds
1401da177e4SLinus Torvaldsconfig CPU_FREQ_GOV_USERSPACE
1411da177e4SLinus Torvalds	tristate "'userspace' governor for userspace frequency scaling"
1421da177e4SLinus Torvalds	help
1431da177e4SLinus Torvalds	  Enable this cpufreq governor when you either want to set the
1440211a9c8SFrederik Schwarzer	  CPU frequency manually or when a userspace program shall
1451da177e4SLinus Torvalds	  be able to set the CPU dynamically, like on LART
1464c41251eSErik Mouw	  <http://www.lartmaker.nl/>.
1471da177e4SLinus Torvalds
1489101be53SMike Frysinger	  To compile this driver as a module, choose M here: the
1499101be53SMike Frysinger	  module will be called cpufreq_userspace.
1509101be53SMike Frysinger
1511da177e4SLinus Torvalds	  For details, take a look at <file:Documentation/cpu-freq/>.
1521da177e4SLinus Torvalds
1531da177e4SLinus Torvalds	  If in doubt, say Y.
1541da177e4SLinus Torvalds
1551da177e4SLinus Torvaldsconfig CPU_FREQ_GOV_ONDEMAND
1561da177e4SLinus Torvalds	tristate "'ondemand' cpufreq policy governor"
1571e15f295SLarry Finger	select CPU_FREQ_GOV_COMMON
1581da177e4SLinus Torvalds	help
1591da177e4SLinus Torvalds	  'ondemand' - This driver adds a dynamic cpufreq policy governor.
1601da177e4SLinus Torvalds	  The governor does a periodic polling and
1611da177e4SLinus Torvalds	  changes frequency based on the CPU utilization.
1621da177e4SLinus Torvalds	  The support for this governor depends on CPU capability to
1631da177e4SLinus Torvalds	  do fast frequency switching (i.e, very low latency frequency
1641da177e4SLinus Torvalds	  transitions).
1651da177e4SLinus Torvalds
1669101be53SMike Frysinger	  To compile this driver as a module, choose M here: the
1679101be53SMike Frysinger	  module will be called cpufreq_ondemand.
1689101be53SMike Frysinger
1691da177e4SLinus Torvalds	  For details, take a look at linux/Documentation/cpu-freq.
1701da177e4SLinus Torvalds
1711da177e4SLinus Torvalds	  If in doubt, say N.
1721da177e4SLinus Torvalds
173b9170836SDave Jonesconfig CPU_FREQ_GOV_CONSERVATIVE
174b9170836SDave Jones	tristate "'conservative' cpufreq governor"
175b9170836SDave Jones	depends on CPU_FREQ
1761e15f295SLarry Finger	select CPU_FREQ_GOV_COMMON
177b9170836SDave Jones	help
178b9170836SDave Jones	  'conservative' - this driver is rather similar to the 'ondemand'
179b9170836SDave Jones	  governor both in its source code and its purpose, the difference is
180b9170836SDave Jones	  its optimisation for better suitability in a battery powered
181b9170836SDave Jones	  environment.  The frequency is gracefully increased and decreased
182b9170836SDave Jones	  rather than jumping to 100% when speed is required.
183b9170836SDave Jones
184b9170836SDave Jones	  If you have a desktop machine then you should really be considering
185b9170836SDave Jones	  the 'ondemand' governor instead, however if you are using a laptop,
186b9170836SDave Jones	  PDA or even an AMD64 based computer (due to the unacceptable
187b9170836SDave Jones	  step-by-step latency issues between the minimum and maximum frequency
188b9170836SDave Jones	  transitions in the CPU) you will probably want to use this governor.
189b9170836SDave Jones
1909101be53SMike Frysinger	  To compile this driver as a module, choose M here: the
1919101be53SMike Frysinger	  module will be called cpufreq_conservative.
1929101be53SMike Frysinger
193b9170836SDave Jones	  For details, take a look at linux/Documentation/cpu-freq.
194b9170836SDave Jones
195b9170836SDave Jones	  If in doubt, say N.
196b9170836SDave Jones
1979bdcb44eSRafael J. Wysockiconfig CPU_FREQ_GOV_SCHEDUTIL
1989bdcb44eSRafael J. Wysocki	tristate "'schedutil' cpufreq policy governor"
199bf7cdff1SRafael J. Wysocki	depends on CPU_FREQ && SMP
2009bdcb44eSRafael J. Wysocki	select CPU_FREQ_GOV_ATTR_SET
2019bdcb44eSRafael J. Wysocki	select IRQ_WORK
2029bdcb44eSRafael J. Wysocki	help
2039bdcb44eSRafael J. Wysocki	  This governor makes decisions based on the utilization data provided
2049bdcb44eSRafael J. Wysocki	  by the scheduler.  It sets the CPU frequency to be proportional to
2059bdcb44eSRafael J. Wysocki	  the utilization/capacity ratio coming from the scheduler.  If the
2069bdcb44eSRafael J. Wysocki	  utilization is frequency-invariant, the new frequency is also
2079bdcb44eSRafael J. Wysocki	  proportional to the maximum available frequency.  If that is not the
2089bdcb44eSRafael J. Wysocki	  case, it is proportional to the current frequency of the CPU.  The
2099bdcb44eSRafael J. Wysocki	  frequency tipping point is at utilization/capacity equal to 80% in
2109bdcb44eSRafael J. Wysocki	  both cases.
2119bdcb44eSRafael J. Wysocki
2129bdcb44eSRafael J. Wysocki	  To compile this driver as a module, choose M here: the module will
2139bdcb44eSRafael J. Wysocki	  be called cpufreq_schedutil.
2149bdcb44eSRafael J. Wysocki
2159bdcb44eSRafael J. Wysocki	  If in doubt, say N.
2169bdcb44eSRafael J. Wysocki
217f41f4815SViresh Kumarcomment "CPU frequency scaling drivers"
218f41f4815SViresh Kumar
219bbcf0719SViresh Kumarconfig CPUFREQ_DT
220bbcf0719SViresh Kumar	tristate "Generic DT based cpufreq driver"
2215fbfbcd3SViresh Kumar	depends on HAVE_CLK && OF
222bbcf0719SViresh Kumar	# if CPU_THERMAL is on and THERMAL=m, CPUFREQ_DT cannot be =y:
223217886d3SArnd Bergmann	depends on !CPU_THERMAL || THERMAL
224f56aad1dSViresh Kumar	select CPUFREQ_DT_PLATDEV
225109df086SMark Brown	select PM_OPP
22695ceafd4SShawn Guo	help
227bbcf0719SViresh Kumar	  This adds a generic DT based cpufreq driver for frequency management.
22895ceafd4SShawn Guo	  It supports both uniprocessor (UP) and symmetric multiprocessor (SMP)
22995ceafd4SShawn Guo	  systems which share clock and voltage across all CPUs.
23095ceafd4SShawn Guo
23195ceafd4SShawn Guo	  If in doubt, say N.
23295ceafd4SShawn Guo
233f56aad1dSViresh Kumarconfig CPUFREQ_DT_PLATDEV
234f56aad1dSViresh Kumar	bool
235f56aad1dSViresh Kumar	help
236f56aad1dSViresh Kumar	  This adds a generic DT based cpufreq platdev driver for frequency
237f56aad1dSViresh Kumar	  management.  This creates a 'cpufreq-dt' platform device, on the
238f56aad1dSViresh Kumar	  supported platforms.
239f56aad1dSViresh Kumar
240f56aad1dSViresh Kumar	  If in doubt, say N.
241f56aad1dSViresh Kumar
242f41f4815SViresh Kumarif X86
243bb0a56ecSDave Jonessource "drivers/cpufreq/Kconfig.x86"
244f41f4815SViresh Kumarendif
245bb0a56ecSDave Jones
246f41f4815SViresh Kumarif ARM || ARM64
247f7d77079SKukjin Kimsource "drivers/cpufreq/Kconfig.arm"
248f41f4815SViresh Kumarendif
249f7d77079SKukjin Kim
250f41f4815SViresh Kumarif PPC32 || PPC64
251f41f4815SViresh Kumarsource "drivers/cpufreq/Kconfig.powerpc"
252f41f4815SViresh Kumarendif
25381c720c9SViresh Kumar
254f41f4815SViresh Kumarif AVR32
25581c720c9SViresh Kumarconfig AVR32_AT32AP_CPUFREQ
25681c720c9SViresh Kumar	bool "CPU frequency driver for AT32AP"
25781c720c9SViresh Kumar	depends on PLATFORM_AT32AP
25881c720c9SViresh Kumar	default n
25981c720c9SViresh Kumar	help
26081c720c9SViresh Kumar	  This enables the CPU frequency driver for AT32AP processors.
26181c720c9SViresh Kumar	  If in doubt, say N.
262f41f4815SViresh Kumarendif
26381c720c9SViresh Kumar
264f41f4815SViresh Kumarif IA64
265ab423e43SViresh Kumarconfig IA64_ACPI_CPUFREQ
266ab423e43SViresh Kumar	tristate "ACPI Processor P-States driver"
267ab423e43SViresh Kumar	depends on ACPI_PROCESSOR
268ab423e43SViresh Kumar	help
269ab423e43SViresh Kumar	This driver adds a CPUFreq driver which utilizes the ACPI
270ab423e43SViresh Kumar	Processor Performance States.
271ab423e43SViresh Kumar
272ab423e43SViresh Kumar	For details, take a look at <file:Documentation/cpu-freq/>.
273ab423e43SViresh Kumar
274ab423e43SViresh Kumar	If in doubt, say N.
275f41f4815SViresh Kumarendif
276ab423e43SViresh Kumar
277f41f4815SViresh Kumarif MIPS
2787a998935SViresh Kumarconfig LOONGSON2_CPUFREQ
2797a998935SViresh Kumar	tristate "Loongson2 CPUFreq Driver"
2807a998935SViresh Kumar	help
2817a998935SViresh Kumar	  This option adds a CPUFreq driver for loongson processors which
2827a998935SViresh Kumar	  support software configurable cpu frequency.
2837a998935SViresh Kumar
2847a998935SViresh Kumar	  Loongson2F and it's successors support this feature.
2857a998935SViresh Kumar
2867a998935SViresh Kumar	  For details, take a look at <file:Documentation/cpu-freq/>.
2877a998935SViresh Kumar
2887a998935SViresh Kumar	  If in doubt, say N.
2897a998935SViresh Kumar
290a0a22cf1SKelvin Cheungconfig LOONGSON1_CPUFREQ
291a0a22cf1SKelvin Cheung	tristate "Loongson1 CPUFreq Driver"
292a0a22cf1SKelvin Cheung	help
293a0a22cf1SKelvin Cheung	  This option adds a CPUFreq driver for loongson1 processors which
294a0a22cf1SKelvin Cheung	  support software configurable cpu frequency.
295a0a22cf1SKelvin Cheung
296a0a22cf1SKelvin Cheung	  For details, take a look at <file:Documentation/cpu-freq/>.
297a0a22cf1SKelvin Cheung
298a0a22cf1SKelvin Cheung	  If in doubt, say N.
299f41f4815SViresh Kumarendif
300a0a22cf1SKelvin Cheung
301f41f4815SViresh Kumarif SPARC64
302764295aeSViresh Kumarconfig SPARC_US3_CPUFREQ
303764295aeSViresh Kumar	tristate "UltraSPARC-III CPU Frequency driver"
304764295aeSViresh Kumar	help
305764295aeSViresh Kumar	  This adds the CPUFreq driver for UltraSPARC-III processors.
306764295aeSViresh Kumar
307764295aeSViresh Kumar	  For details, take a look at <file:Documentation/cpu-freq>.
308764295aeSViresh Kumar
309764295aeSViresh Kumar	  If in doubt, say N.
310764295aeSViresh Kumar
311764295aeSViresh Kumarconfig SPARC_US2E_CPUFREQ
312764295aeSViresh Kumar	tristate "UltraSPARC-IIe CPU Frequency driver"
313764295aeSViresh Kumar	help
314764295aeSViresh Kumar	  This adds the CPUFreq driver for UltraSPARC-IIe processors.
315764295aeSViresh Kumar
316764295aeSViresh Kumar	  For details, take a look at <file:Documentation/cpu-freq>.
317764295aeSViresh Kumar
318764295aeSViresh Kumar	  If in doubt, say N.
319f41f4815SViresh Kumarendif
320764295aeSViresh Kumar
321f41f4815SViresh Kumarif SUPERH
3227258267eSViresh Kumarconfig SH_CPU_FREQ
3237258267eSViresh Kumar	tristate "SuperH CPU Frequency driver"
3247258267eSViresh Kumar	help
3257258267eSViresh Kumar	  This adds the cpufreq driver for SuperH. Any CPU that supports
3267258267eSViresh Kumar	  clock rate rounding through the clock framework can use this
3277258267eSViresh Kumar	  driver. While it will make the kernel slightly larger, this is
3287258267eSViresh Kumar	  harmless for CPUs that don't support rate rounding. The driver
3297258267eSViresh Kumar	  will also generate a notice in the boot log before disabling
3307258267eSViresh Kumar	  itself if the CPU in question is not capable of rate rounding.
3317258267eSViresh Kumar
3327258267eSViresh Kumar	  For details, take a look at <file:Documentation/cpu-freq>.
3337258267eSViresh Kumar
3347258267eSViresh Kumar	  If unsure, say N.
335f41f4815SViresh Kumarendif
3367258267eSViresh Kumar
3372f249358STang Yuantianconfig QORIQ_CPUFREQ
3382f249358STang Yuantian	tristate "CPU frequency scaling driver for Freescale QorIQ SoCs"
3392f249358STang Yuantian	depends on OF && COMMON_CLK && (PPC_E500MC || ARM)
340ddd30ef4SArnd Bergmann	depends on !CPU_THERMAL || THERMAL
3412f249358STang Yuantian	select CLK_QORIQ
3422f249358STang Yuantian	help
3432f249358STang Yuantian	  This adds the CPUFreq driver support for Freescale QorIQ SoCs
3442f249358STang Yuantian	  which are capable of changing the CPU's frequency dynamically.
3452f249358STang Yuantian
346bb0a56ecSDave Jonesendif
347bb0a56ecSDave Jonesendmenu
348