Kconfig 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. menu "CPU Frequency scaling"
  2. config CPU_FREQ
  3. bool "CPU Frequency scaling"
  4. help
  5. CPU Frequency scaling allows you to change the clock speed of
  6. CPUs on the fly. This is a nice method to save power, because
  7. the lower the CPU clock speed, the less power the CPU consumes.
  8. Note that this driver doesn't automatically change the CPU
  9. clock speed, you need to either enable a dynamic cpufreq governor
  10. (see below) after boot, or use a userspace tool.
  11. For details, take a look at <file:Documentation/cpu-freq>.
  12. If in doubt, say N.
  13. if CPU_FREQ
  14. config CPU_FREQ_GOV_COMMON
  15. bool
  16. config CPU_FREQ_BOOST_SW
  17. bool
  18. depends on THERMAL
  19. config CPU_FREQ_STAT
  20. tristate "CPU frequency translation statistics"
  21. default y
  22. help
  23. This driver exports CPU frequency statistics information through sysfs
  24. file system.
  25. To compile this driver as a module, choose M here: the
  26. module will be called cpufreq_stats.
  27. If in doubt, say N.
  28. config CPU_FREQ_STAT_DETAILS
  29. bool "CPU frequency translation statistics details"
  30. depends on CPU_FREQ_STAT
  31. help
  32. This will show detail CPU frequency translation table in sysfs file
  33. system.
  34. If in doubt, say N.
  35. choice
  36. prompt "Default CPUFreq governor"
  37. default CPU_FREQ_DEFAULT_GOV_USERSPACE if ARM_SA1100_CPUFREQ || ARM_SA1110_CPUFREQ
  38. default CPU_FREQ_DEFAULT_GOV_PERFORMANCE
  39. help
  40. This option sets which CPUFreq governor shall be loaded at
  41. startup. If in doubt, select 'performance'.
  42. config CPU_FREQ_DEFAULT_GOV_PERFORMANCE
  43. bool "performance"
  44. select CPU_FREQ_GOV_PERFORMANCE
  45. help
  46. Use the CPUFreq governor 'performance' as default. This sets
  47. the frequency statically to the highest frequency supported by
  48. the CPU.
  49. config CPU_FREQ_DEFAULT_GOV_POWERSAVE
  50. bool "powersave"
  51. depends on EXPERT
  52. select CPU_FREQ_GOV_POWERSAVE
  53. help
  54. Use the CPUFreq governor 'powersave' as default. This sets
  55. the frequency statically to the lowest frequency supported by
  56. the CPU.
  57. config CPU_FREQ_DEFAULT_GOV_USERSPACE
  58. bool "userspace"
  59. select CPU_FREQ_GOV_USERSPACE
  60. help
  61. Use the CPUFreq governor 'userspace' as default. This allows
  62. you to set the CPU frequency manually or when a userspace
  63. program shall be able to set the CPU dynamically without having
  64. to enable the userspace governor manually.
  65. config CPU_FREQ_DEFAULT_GOV_ONDEMAND
  66. bool "ondemand"
  67. select CPU_FREQ_GOV_ONDEMAND
  68. select CPU_FREQ_GOV_PERFORMANCE
  69. help
  70. Use the CPUFreq governor 'ondemand' as default. This allows
  71. you to get a full dynamic frequency capable system by simply
  72. loading your cpufreq low-level hardware driver.
  73. Be aware that not all cpufreq drivers support the ondemand
  74. governor. If unsure have a look at the help section of the
  75. driver. Fallback governor will be the performance governor.
  76. config CPU_FREQ_DEFAULT_GOV_CONSERVATIVE
  77. bool "conservative"
  78. select CPU_FREQ_GOV_CONSERVATIVE
  79. select CPU_FREQ_GOV_PERFORMANCE
  80. help
  81. Use the CPUFreq governor 'conservative' as default. This allows
  82. you to get a full dynamic frequency capable system by simply
  83. loading your cpufreq low-level hardware driver.
  84. Be aware that not all cpufreq drivers support the conservative
  85. governor. If unsure have a look at the help section of the
  86. driver. Fallback governor will be the performance governor.
  87. config CPU_FREQ_DEFAULT_GOV_INTERACTIVE
  88. bool "interactive"
  89. select CPU_FREQ_GOV_INTERACTIVE
  90. help
  91. Use the CPUFreq governor 'interactive' as default. This allows
  92. you to get a full dynamic cpu frequency capable system by simply
  93. loading your cpufreq low-level hardware driver, using the
  94. 'interactive' governor for latency-sensitive workloads.
  95. endchoice
  96. config CPU_FREQ_GOV_PERFORMANCE
  97. tristate "'performance' governor"
  98. help
  99. This cpufreq governor sets the frequency statically to the
  100. highest available CPU frequency.
  101. To compile this driver as a module, choose M here: the
  102. module will be called cpufreq_performance.
  103. If in doubt, say Y.
  104. config CPU_FREQ_GOV_POWERSAVE
  105. tristate "'powersave' governor"
  106. help
  107. This cpufreq governor sets the frequency statically to the
  108. lowest available CPU frequency.
  109. To compile this driver as a module, choose M here: the
  110. module will be called cpufreq_powersave.
  111. If in doubt, say Y.
  112. config CPU_FREQ_GOV_USERSPACE
  113. tristate "'userspace' governor for userspace frequency scaling"
  114. help
  115. Enable this cpufreq governor when you either want to set the
  116. CPU frequency manually or when a userspace program shall
  117. be able to set the CPU dynamically, like on LART
  118. <http://www.lartmaker.nl/>.
  119. To compile this driver as a module, choose M here: the
  120. module will be called cpufreq_userspace.
  121. For details, take a look at <file:Documentation/cpu-freq/>.
  122. If in doubt, say Y.
  123. config CPU_FREQ_GOV_ONDEMAND
  124. tristate "'ondemand' cpufreq policy governor"
  125. select CPU_FREQ_GOV_COMMON
  126. help
  127. 'ondemand' - This driver adds a dynamic cpufreq policy governor.
  128. The governor does a periodic polling and
  129. changes frequency based on the CPU utilization.
  130. The support for this governor depends on CPU capability to
  131. do fast frequency switching (i.e, very low latency frequency
  132. transitions).
  133. To compile this driver as a module, choose M here: the
  134. module will be called cpufreq_ondemand.
  135. For details, take a look at linux/Documentation/cpu-freq.
  136. If in doubt, say N.
  137. config CPU_FREQ_GOV_INTERACTIVE
  138. tristate "'interactive' cpufreq policy governor"
  139. help
  140. 'interactive' - This driver adds a dynamic cpufreq policy governor
  141. designed for latency-sensitive workloads.
  142. This governor attempts to reduce the latency of clock
  143. increases so that the system is more responsive to
  144. interactive workloads.
  145. To compile this driver as a module, choose M here: the
  146. module will be called cpufreq_interactive.
  147. For details, take a look at linux/Documentation/cpu-freq.
  148. If in doubt, say N.
  149. config CPU_FREQ_GOV_CONSERVATIVE
  150. tristate "'conservative' cpufreq governor"
  151. depends on CPU_FREQ
  152. select CPU_FREQ_GOV_COMMON
  153. help
  154. 'conservative' - this driver is rather similar to the 'ondemand'
  155. governor both in its source code and its purpose, the difference is
  156. its optimisation for better suitability in a battery powered
  157. environment. The frequency is gracefully increased and decreased
  158. rather than jumping to 100% when speed is required.
  159. If you have a desktop machine then you should really be considering
  160. the 'ondemand' governor instead, however if you are using a laptop,
  161. PDA or even an AMD64 based computer (due to the unacceptable
  162. step-by-step latency issues between the minimum and maximum frequency
  163. transitions in the CPU) you will probably want to use this governor.
  164. To compile this driver as a module, choose M here: the
  165. module will be called cpufreq_conservative.
  166. For details, take a look at linux/Documentation/cpu-freq.
  167. If in doubt, say N.
  168. config CPUFREQ_DT
  169. tristate "Generic DT based cpufreq driver"
  170. depends on HAVE_CLK && OF
  171. # if CPU_THERMAL is on and THERMAL=m, CPUFREQ_DT cannot be =y:
  172. depends on !CPU_THERMAL || THERMAL
  173. select PM_OPP
  174. help
  175. This adds a generic DT based cpufreq driver for frequency management.
  176. It supports both uniprocessor (UP) and symmetric multiprocessor (SMP)
  177. systems which share clock and voltage across all CPUs.
  178. If in doubt, say N.
  179. menu "x86 CPU frequency scaling drivers"
  180. depends on X86
  181. source "drivers/cpufreq/Kconfig.x86"
  182. endmenu
  183. menu "ARM CPU frequency scaling drivers"
  184. depends on ARM || ARM64
  185. source "drivers/cpufreq/Kconfig.arm"
  186. endmenu
  187. menu "AVR32 CPU frequency scaling drivers"
  188. depends on AVR32
  189. config AVR32_AT32AP_CPUFREQ
  190. bool "CPU frequency driver for AT32AP"
  191. depends on PLATFORM_AT32AP
  192. default n
  193. help
  194. This enables the CPU frequency driver for AT32AP processors.
  195. If in doubt, say N.
  196. endmenu
  197. menu "CPUFreq processor drivers"
  198. depends on IA64
  199. config IA64_ACPI_CPUFREQ
  200. tristate "ACPI Processor P-States driver"
  201. depends on ACPI_PROCESSOR
  202. help
  203. This driver adds a CPUFreq driver which utilizes the ACPI
  204. Processor Performance States.
  205. For details, take a look at <file:Documentation/cpu-freq/>.
  206. If in doubt, say N.
  207. endmenu
  208. menu "MIPS CPUFreq processor drivers"
  209. depends on MIPS
  210. config LOONGSON2_CPUFREQ
  211. tristate "Loongson2 CPUFreq Driver"
  212. help
  213. This option adds a CPUFreq driver for loongson processors which
  214. support software configurable cpu frequency.
  215. Loongson2F and it's successors support this feature.
  216. For details, take a look at <file:Documentation/cpu-freq/>.
  217. If in doubt, say N.
  218. endmenu
  219. menu "PowerPC CPU frequency scaling drivers"
  220. depends on PPC32 || PPC64
  221. source "drivers/cpufreq/Kconfig.powerpc"
  222. endmenu
  223. menu "SPARC CPU frequency scaling drivers"
  224. depends on SPARC64
  225. config SPARC_US3_CPUFREQ
  226. tristate "UltraSPARC-III CPU Frequency driver"
  227. help
  228. This adds the CPUFreq driver for UltraSPARC-III processors.
  229. For details, take a look at <file:Documentation/cpu-freq>.
  230. If in doubt, say N.
  231. config SPARC_US2E_CPUFREQ
  232. tristate "UltraSPARC-IIe CPU Frequency driver"
  233. help
  234. This adds the CPUFreq driver for UltraSPARC-IIe processors.
  235. For details, take a look at <file:Documentation/cpu-freq>.
  236. If in doubt, say N.
  237. endmenu
  238. menu "SH CPU Frequency scaling"
  239. depends on SUPERH
  240. config SH_CPU_FREQ
  241. tristate "SuperH CPU Frequency driver"
  242. help
  243. This adds the cpufreq driver for SuperH. Any CPU that supports
  244. clock rate rounding through the clock framework can use this
  245. driver. While it will make the kernel slightly larger, this is
  246. harmless for CPUs that don't support rate rounding. The driver
  247. will also generate a notice in the boot log before disabling
  248. itself if the CPU in question is not capable of rate rounding.
  249. For details, take a look at <file:Documentation/cpu-freq>.
  250. If unsure, say N.
  251. endmenu
  252. endif
  253. endmenu