Kconfig 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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_ATTR_SET
  16. bool
  17. config CPU_FREQ_GOV_COMMON
  18. select CPU_FREQ_GOV_ATTR_SET
  19. select IRQ_WORK
  20. bool
  21. config CPU_FREQ_BOOST_SW
  22. bool
  23. depends on THERMAL
  24. config CPU_FREQ_STAT
  25. bool "CPU frequency transition statistics"
  26. help
  27. Export CPU frequency statistics information through sysfs.
  28. If in doubt, say N.
  29. config CPU_FREQ_STAT_DETAILS
  30. bool "CPU frequency transition statistics details"
  31. depends on CPU_FREQ_STAT
  32. help
  33. Show detailed CPU frequency transition table in sysfs.
  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. select CPU_FREQ_GOV_POWERSAVE
  52. help
  53. Use the CPUFreq governor 'powersave' as default. This sets
  54. the frequency statically to the lowest frequency supported by
  55. the CPU.
  56. config CPU_FREQ_DEFAULT_GOV_USERSPACE
  57. bool "userspace"
  58. select CPU_FREQ_GOV_USERSPACE
  59. help
  60. Use the CPUFreq governor 'userspace' as default. This allows
  61. you to set the CPU frequency manually or when a userspace
  62. program shall be able to set the CPU dynamically without having
  63. to enable the userspace governor manually.
  64. config CPU_FREQ_DEFAULT_GOV_ONDEMAND
  65. bool "ondemand"
  66. select CPU_FREQ_GOV_ONDEMAND
  67. select CPU_FREQ_GOV_PERFORMANCE
  68. help
  69. Use the CPUFreq governor 'ondemand' as default. This allows
  70. you to get a full dynamic frequency capable system by simply
  71. loading your cpufreq low-level hardware driver.
  72. Be aware that not all cpufreq drivers support the ondemand
  73. governor. If unsure have a look at the help section of the
  74. driver. Fallback governor will be the performance governor.
  75. config CPU_FREQ_DEFAULT_GOV_CONSERVATIVE
  76. bool "conservative"
  77. select CPU_FREQ_GOV_CONSERVATIVE
  78. select CPU_FREQ_GOV_PERFORMANCE
  79. help
  80. Use the CPUFreq governor 'conservative' as default. This allows
  81. you to get a full dynamic frequency capable system by simply
  82. loading your cpufreq low-level hardware driver.
  83. Be aware that not all cpufreq drivers support the conservative
  84. governor. If unsure have a look at the help section of the
  85. driver. Fallback governor will be the performance governor.
  86. config CPU_FREQ_DEFAULT_GOV_SCHEDUTIL
  87. bool "schedutil"
  88. depends on SMP
  89. select CPU_FREQ_GOV_SCHEDUTIL
  90. select CPU_FREQ_GOV_PERFORMANCE
  91. help
  92. Use the 'schedutil' CPUFreq governor by default. If unsure,
  93. have a look at the help section of that governor. The fallback
  94. governor will be 'performance'.
  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_CONSERVATIVE
  138. tristate "'conservative' cpufreq governor"
  139. depends on CPU_FREQ
  140. select CPU_FREQ_GOV_COMMON
  141. help
  142. 'conservative' - this driver is rather similar to the 'ondemand'
  143. governor both in its source code and its purpose, the difference is
  144. its optimisation for better suitability in a battery powered
  145. environment. The frequency is gracefully increased and decreased
  146. rather than jumping to 100% when speed is required.
  147. If you have a desktop machine then you should really be considering
  148. the 'ondemand' governor instead, however if you are using a laptop,
  149. PDA or even an AMD64 based computer (due to the unacceptable
  150. step-by-step latency issues between the minimum and maximum frequency
  151. transitions in the CPU) you will probably want to use this governor.
  152. To compile this driver as a module, choose M here: the
  153. module will be called cpufreq_conservative.
  154. For details, take a look at linux/Documentation/cpu-freq.
  155. If in doubt, say N.
  156. config CPU_FREQ_GOV_SCHEDUTIL
  157. bool "'schedutil' cpufreq policy governor"
  158. depends on CPU_FREQ && SMP
  159. select CPU_FREQ_GOV_ATTR_SET
  160. select IRQ_WORK
  161. help
  162. This governor makes decisions based on the utilization data provided
  163. by the scheduler. It sets the CPU frequency to be proportional to
  164. the utilization/capacity ratio coming from the scheduler. If the
  165. utilization is frequency-invariant, the new frequency is also
  166. proportional to the maximum available frequency. If that is not the
  167. case, it is proportional to the current frequency of the CPU. The
  168. frequency tipping point is at utilization/capacity equal to 80% in
  169. both cases.
  170. If in doubt, say N.
  171. comment "CPU frequency scaling drivers"
  172. config CPUFREQ_DT
  173. tristate "Generic DT based cpufreq driver"
  174. depends on HAVE_CLK && OF
  175. # if CPU_THERMAL is on and THERMAL=m, CPUFREQ_DT cannot be =y:
  176. depends on !CPU_THERMAL || THERMAL
  177. select CPUFREQ_DT_PLATDEV
  178. select PM_OPP
  179. help
  180. This adds a generic DT based cpufreq driver for frequency management.
  181. It supports both uniprocessor (UP) and symmetric multiprocessor (SMP)
  182. systems.
  183. If in doubt, say N.
  184. config CPUFREQ_DT_PLATDEV
  185. bool
  186. help
  187. This adds a generic DT based cpufreq platdev driver for frequency
  188. management. This creates a 'cpufreq-dt' platform device, on the
  189. supported platforms.
  190. If in doubt, say N.
  191. if X86
  192. source "drivers/cpufreq/Kconfig.x86"
  193. endif
  194. if ARM || ARM64
  195. source "drivers/cpufreq/Kconfig.arm"
  196. endif
  197. if PPC32 || PPC64
  198. source "drivers/cpufreq/Kconfig.powerpc"
  199. endif
  200. if AVR32
  201. config AVR32_AT32AP_CPUFREQ
  202. bool "CPU frequency driver for AT32AP"
  203. depends on PLATFORM_AT32AP
  204. default n
  205. help
  206. This enables the CPU frequency driver for AT32AP processors.
  207. If in doubt, say N.
  208. endif
  209. if IA64
  210. config IA64_ACPI_CPUFREQ
  211. tristate "ACPI Processor P-States driver"
  212. depends on ACPI_PROCESSOR
  213. help
  214. This driver adds a CPUFreq driver which utilizes the ACPI
  215. Processor Performance States.
  216. For details, take a look at <file:Documentation/cpu-freq/>.
  217. If in doubt, say N.
  218. endif
  219. if MIPS
  220. config LOONGSON2_CPUFREQ
  221. tristate "Loongson2 CPUFreq Driver"
  222. depends on LEMOTE_MACH2F
  223. help
  224. This option adds a CPUFreq driver for loongson processors which
  225. support software configurable cpu frequency.
  226. Loongson2F and it's successors support this feature.
  227. For details, take a look at <file:Documentation/cpu-freq/>.
  228. If in doubt, say N.
  229. config LOONGSON1_CPUFREQ
  230. tristate "Loongson1 CPUFreq Driver"
  231. depends on LOONGSON1_LS1B
  232. help
  233. This option adds a CPUFreq driver for loongson1 processors which
  234. support software configurable cpu frequency.
  235. For details, take a look at <file:Documentation/cpu-freq/>.
  236. If in doubt, say N.
  237. endif
  238. if SPARC64
  239. config SPARC_US3_CPUFREQ
  240. tristate "UltraSPARC-III CPU Frequency driver"
  241. help
  242. This adds the CPUFreq driver for UltraSPARC-III processors.
  243. For details, take a look at <file:Documentation/cpu-freq>.
  244. If in doubt, say N.
  245. config SPARC_US2E_CPUFREQ
  246. tristate "UltraSPARC-IIe CPU Frequency driver"
  247. help
  248. This adds the CPUFreq driver for UltraSPARC-IIe processors.
  249. For details, take a look at <file:Documentation/cpu-freq>.
  250. If in doubt, say N.
  251. endif
  252. if SUPERH
  253. config SH_CPU_FREQ
  254. tristate "SuperH CPU Frequency driver"
  255. help
  256. This adds the cpufreq driver for SuperH. Any CPU that supports
  257. clock rate rounding through the clock framework can use this
  258. driver. While it will make the kernel slightly larger, this is
  259. harmless for CPUs that don't support rate rounding. The driver
  260. will also generate a notice in the boot log before disabling
  261. itself if the CPU in question is not capable of rate rounding.
  262. For details, take a look at <file:Documentation/cpu-freq>.
  263. If unsure, say N.
  264. endif
  265. config QORIQ_CPUFREQ
  266. tristate "CPU frequency scaling driver for Freescale QorIQ SoCs"
  267. depends on OF && COMMON_CLK && (PPC_E500MC || ARM)
  268. depends on !CPU_THERMAL || THERMAL
  269. select CLK_QORIQ
  270. help
  271. This adds the CPUFreq driver support for Freescale QorIQ SoCs
  272. which are capable of changing the CPU's frequency dynamically.
  273. endif
  274. endmenu