Kconfig 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  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_TIMES
  30. bool "CPU frequency time-in-state statistics"
  31. help
  32. Export CPU time-in-state information through procfs.
  33. If in doubt, say N.
  34. choice
  35. prompt "Default CPUFreq governor"
  36. default CPU_FREQ_DEFAULT_GOV_USERSPACE if ARM_SA1100_CPUFREQ || ARM_SA1110_CPUFREQ
  37. default CPU_FREQ_DEFAULT_GOV_PERFORMANCE
  38. help
  39. This option sets which CPUFreq governor shall be loaded at
  40. startup. If in doubt, select 'performance'.
  41. config CPU_FREQ_DEFAULT_GOV_PERFORMANCE
  42. bool "performance"
  43. select CPU_FREQ_GOV_PERFORMANCE
  44. help
  45. Use the CPUFreq governor 'performance' as default. This sets
  46. the frequency statically to the highest frequency supported by
  47. the CPU.
  48. config CPU_FREQ_DEFAULT_GOV_POWERSAVE
  49. bool "powersave"
  50. select CPU_FREQ_GOV_POWERSAVE
  51. help
  52. Use the CPUFreq governor 'powersave' as default. This sets
  53. the frequency statically to the lowest frequency supported by
  54. the CPU.
  55. config CPU_FREQ_DEFAULT_GOV_USERSPACE
  56. bool "userspace"
  57. select CPU_FREQ_GOV_USERSPACE
  58. help
  59. Use the CPUFreq governor 'userspace' as default. This allows
  60. you to set the CPU frequency manually or when a userspace
  61. program shall be able to set the CPU dynamically without having
  62. to enable the userspace governor manually.
  63. config CPU_FREQ_DEFAULT_GOV_ONDEMAND
  64. bool "ondemand"
  65. select CPU_FREQ_GOV_ONDEMAND
  66. select CPU_FREQ_GOV_PERFORMANCE
  67. help
  68. Use the CPUFreq governor 'ondemand' as default. This allows
  69. you to get a full dynamic frequency capable system by simply
  70. loading your cpufreq low-level hardware driver.
  71. Be aware that not all cpufreq drivers support the ondemand
  72. governor. If unsure have a look at the help section of the
  73. driver. Fallback governor will be the performance governor.
  74. config CPU_FREQ_DEFAULT_GOV_CONSERVATIVE
  75. bool "conservative"
  76. select CPU_FREQ_GOV_CONSERVATIVE
  77. select CPU_FREQ_GOV_PERFORMANCE
  78. help
  79. Use the CPUFreq governor 'conservative' as default. This allows
  80. you to get a full dynamic frequency capable system by simply
  81. loading your cpufreq low-level hardware driver.
  82. Be aware that not all cpufreq drivers support the conservative
  83. governor. If unsure have a look at the help section of the
  84. driver. Fallback governor will be the performance governor.
  85. config CPU_FREQ_DEFAULT_GOV_INTERACTIVE
  86. bool "interactive"
  87. select CPU_FREQ_GOV_INTERACTIVE
  88. help
  89. Use the CPUFreq governor 'interactive' as default. This allows
  90. you to get a full dynamic cpu frequency capable system by simply
  91. loading your cpufreq low-level hardware driver, using the
  92. 'interactive' governor for latency-sensitive workloads.
  93. config CPU_FREQ_DEFAULT_GOV_SCHEDUTIL
  94. bool "schedutil"
  95. depends on SMP
  96. select CPU_FREQ_GOV_SCHEDUTIL
  97. select CPU_FREQ_GOV_PERFORMANCE
  98. help
  99. Use the 'schedutil' CPUFreq governor by default. If unsure,
  100. have a look at the help section of that governor. The fallback
  101. governor will be 'performance'.
  102. endchoice
  103. config CPU_FREQ_GOV_PERFORMANCE
  104. tristate "'performance' governor"
  105. help
  106. This cpufreq governor sets the frequency statically to the
  107. highest available CPU frequency.
  108. To compile this driver as a module, choose M here: the
  109. module will be called cpufreq_performance.
  110. If in doubt, say Y.
  111. config CPU_FREQ_GOV_POWERSAVE
  112. tristate "'powersave' governor"
  113. help
  114. This cpufreq governor sets the frequency statically to the
  115. lowest available CPU frequency.
  116. To compile this driver as a module, choose M here: the
  117. module will be called cpufreq_powersave.
  118. If in doubt, say Y.
  119. config CPU_FREQ_GOV_USERSPACE
  120. tristate "'userspace' governor for userspace frequency scaling"
  121. help
  122. Enable this cpufreq governor when you either want to set the
  123. CPU frequency manually or when a userspace program shall
  124. be able to set the CPU dynamically, like on LART
  125. <http://www.lartmaker.nl/>.
  126. To compile this driver as a module, choose M here: the
  127. module will be called cpufreq_userspace.
  128. For details, take a look at <file:Documentation/cpu-freq/>.
  129. If in doubt, say Y.
  130. config CPU_FREQ_GOV_ONDEMAND
  131. tristate "'ondemand' cpufreq policy governor"
  132. select CPU_FREQ_GOV_COMMON
  133. help
  134. 'ondemand' - This driver adds a dynamic cpufreq policy governor.
  135. The governor does a periodic polling and
  136. changes frequency based on the CPU utilization.
  137. The support for this governor depends on CPU capability to
  138. do fast frequency switching (i.e, very low latency frequency
  139. transitions).
  140. To compile this driver as a module, choose M here: the
  141. module will be called cpufreq_ondemand.
  142. For details, take a look at linux/Documentation/cpu-freq.
  143. If in doubt, say N.
  144. config CPU_FREQ_GOV_INTERACTIVE
  145. bool "'interactive' cpufreq policy governor"
  146. help
  147. 'interactive' - This driver adds a dynamic cpufreq policy governor
  148. designed for latency-sensitive workloads.
  149. This governor attempts to reduce the latency of clock
  150. increases so that the system is more responsive to
  151. interactive workloads.
  152. For details, take a look at linux/Documentation/cpu-freq.
  153. If in doubt, say N.
  154. config CPU_FREQ_GOV_CONSERVATIVE
  155. tristate "'conservative' cpufreq governor"
  156. depends on CPU_FREQ
  157. select CPU_FREQ_GOV_COMMON
  158. help
  159. 'conservative' - this driver is rather similar to the 'ondemand'
  160. governor both in its source code and its purpose, the difference is
  161. its optimisation for better suitability in a battery powered
  162. environment. The frequency is gracefully increased and decreased
  163. rather than jumping to 100% when speed is required.
  164. If you have a desktop machine then you should really be considering
  165. the 'ondemand' governor instead, however if you are using a laptop,
  166. PDA or even an AMD64 based computer (due to the unacceptable
  167. step-by-step latency issues between the minimum and maximum frequency
  168. transitions in the CPU) you will probably want to use this governor.
  169. To compile this driver as a module, choose M here: the
  170. module will be called cpufreq_conservative.
  171. For details, take a look at linux/Documentation/cpu-freq.
  172. If in doubt, say N.
  173. config CPU_FREQ_GOV_SCHEDUTIL
  174. bool "'schedutil' cpufreq policy governor"
  175. depends on CPU_FREQ && SMP
  176. select CPU_FREQ_GOV_ATTR_SET
  177. select IRQ_WORK
  178. help
  179. This governor makes decisions based on the utilization data provided
  180. by the scheduler. It sets the CPU frequency to be proportional to
  181. the utilization/capacity ratio coming from the scheduler. If the
  182. utilization is frequency-invariant, the new frequency is also
  183. proportional to the maximum available frequency. If that is not the
  184. case, it is proportional to the current frequency of the CPU. The
  185. frequency tipping point is at utilization/capacity equal to 80% in
  186. both cases.
  187. If in doubt, say N.
  188. comment "CPU frequency scaling drivers"
  189. config CPUFREQ_DT
  190. tristate "Generic DT based cpufreq driver"
  191. depends on HAVE_CLK && OF
  192. # if CPU_THERMAL is on and THERMAL=m, CPUFREQ_DT cannot be =y:
  193. depends on !CPU_THERMAL || THERMAL
  194. select CPUFREQ_DT_PLATDEV
  195. select PM_OPP
  196. help
  197. This adds a generic DT based cpufreq driver for frequency management.
  198. It supports both uniprocessor (UP) and symmetric multiprocessor (SMP)
  199. systems.
  200. If in doubt, say N.
  201. config CPUFREQ_DT_PLATDEV
  202. bool
  203. help
  204. This adds a generic DT based cpufreq platdev driver for frequency
  205. management. This creates a 'cpufreq-dt' platform device, on the
  206. supported platforms.
  207. If in doubt, say N.
  208. config CPUFREQ_DUMMY
  209. tristate "Dummy CPU frequency driver"
  210. help
  211. This option adds a generic dummy CPUfreq driver, which sets a fake
  212. 2-frequency table when initializing each policy and otherwise does
  213. nothing.
  214. If in doubt, say N
  215. if X86
  216. source "drivers/cpufreq/Kconfig.x86"
  217. endif
  218. if ARM || ARM64
  219. source "drivers/cpufreq/Kconfig.arm"
  220. endif
  221. if PPC32 || PPC64
  222. source "drivers/cpufreq/Kconfig.powerpc"
  223. endif
  224. if AVR32
  225. config AVR32_AT32AP_CPUFREQ
  226. bool "CPU frequency driver for AT32AP"
  227. depends on PLATFORM_AT32AP
  228. default n
  229. help
  230. This enables the CPU frequency driver for AT32AP processors.
  231. If in doubt, say N.
  232. endif
  233. if IA64
  234. config IA64_ACPI_CPUFREQ
  235. tristate "ACPI Processor P-States driver"
  236. depends on ACPI_PROCESSOR
  237. help
  238. This driver adds a CPUFreq driver which utilizes the ACPI
  239. Processor Performance States.
  240. For details, take a look at <file:Documentation/cpu-freq/>.
  241. If in doubt, say N.
  242. endif
  243. if MIPS
  244. config BMIPS_CPUFREQ
  245. tristate "BMIPS CPUfreq Driver"
  246. help
  247. This option adds a CPUfreq driver for BMIPS processors with
  248. support for configurable CPU frequency.
  249. For now, BMIPS5 chips are supported (such as the Broadcom 7425).
  250. If in doubt, say N.
  251. config LOONGSON2_CPUFREQ
  252. tristate "Loongson2 CPUFreq Driver"
  253. depends on LEMOTE_MACH2F
  254. help
  255. This option adds a CPUFreq driver for loongson processors which
  256. support software configurable cpu frequency.
  257. Loongson2F and it's successors support this feature.
  258. For details, take a look at <file:Documentation/cpu-freq/>.
  259. If in doubt, say N.
  260. config LOONGSON1_CPUFREQ
  261. tristate "Loongson1 CPUFreq Driver"
  262. depends on LOONGSON1_LS1B
  263. help
  264. This option adds a CPUFreq driver for loongson1 processors which
  265. support software configurable cpu frequency.
  266. For details, take a look at <file:Documentation/cpu-freq/>.
  267. If in doubt, say N.
  268. endif
  269. if SPARC64
  270. config SPARC_US3_CPUFREQ
  271. tristate "UltraSPARC-III CPU Frequency driver"
  272. help
  273. This adds the CPUFreq driver for UltraSPARC-III processors.
  274. For details, take a look at <file:Documentation/cpu-freq>.
  275. If in doubt, say N.
  276. config SPARC_US2E_CPUFREQ
  277. tristate "UltraSPARC-IIe CPU Frequency driver"
  278. help
  279. This adds the CPUFreq driver for UltraSPARC-IIe processors.
  280. For details, take a look at <file:Documentation/cpu-freq>.
  281. If in doubt, say N.
  282. endif
  283. if SUPERH
  284. config SH_CPU_FREQ
  285. tristate "SuperH CPU Frequency driver"
  286. help
  287. This adds the cpufreq driver for SuperH. Any CPU that supports
  288. clock rate rounding through the clock framework can use this
  289. driver. While it will make the kernel slightly larger, this is
  290. harmless for CPUs that don't support rate rounding. The driver
  291. will also generate a notice in the boot log before disabling
  292. itself if the CPU in question is not capable of rate rounding.
  293. For details, take a look at <file:Documentation/cpu-freq>.
  294. If unsure, say N.
  295. endif
  296. config QORIQ_CPUFREQ
  297. tristate "CPU frequency scaling driver for Freescale QorIQ SoCs"
  298. depends on OF && COMMON_CLK && (PPC_E500MC || ARM || ARM64)
  299. depends on !CPU_THERMAL || THERMAL
  300. select CLK_QORIQ
  301. help
  302. This adds the CPUFreq driver support for Freescale QorIQ SoCs
  303. which are capable of changing the CPU's frequency dynamically.
  304. endif
  305. endmenu