Kconfig 9.0 KB

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