Kconfig 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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. 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. endchoice
  87. config CPU_FREQ_GOV_PERFORMANCE
  88. tristate "'performance' governor"
  89. help
  90. This cpufreq governor sets the frequency statically to the
  91. highest available CPU frequency.
  92. To compile this driver as a module, choose M here: the
  93. module will be called cpufreq_performance.
  94. If in doubt, say Y.
  95. config CPU_FREQ_GOV_POWERSAVE
  96. tristate "'powersave' governor"
  97. help
  98. This cpufreq governor sets the frequency statically to the
  99. lowest available CPU frequency.
  100. To compile this driver as a module, choose M here: the
  101. module will be called cpufreq_powersave.
  102. If in doubt, say Y.
  103. config CPU_FREQ_GOV_USERSPACE
  104. tristate "'userspace' governor for userspace frequency scaling"
  105. help
  106. Enable this cpufreq governor when you either want to set the
  107. CPU frequency manually or when a userspace program shall
  108. be able to set the CPU dynamically, like on LART
  109. <http://www.lartmaker.nl/>.
  110. To compile this driver as a module, choose M here: the
  111. module will be called cpufreq_userspace.
  112. For details, take a look at <file:Documentation/cpu-freq/>.
  113. If in doubt, say Y.
  114. config CPU_FREQ_GOV_ONDEMAND
  115. tristate "'ondemand' cpufreq policy governor"
  116. select CPU_FREQ_GOV_COMMON
  117. help
  118. 'ondemand' - This driver adds a dynamic cpufreq policy governor.
  119. The governor does a periodic polling and
  120. changes frequency based on the CPU utilization.
  121. The support for this governor depends on CPU capability to
  122. do fast frequency switching (i.e, very low latency frequency
  123. transitions).
  124. To compile this driver as a module, choose M here: the
  125. module will be called cpufreq_ondemand.
  126. For details, take a look at linux/Documentation/cpu-freq.
  127. If in doubt, say N.
  128. config CPU_FREQ_GOV_CONSERVATIVE
  129. tristate "'conservative' cpufreq governor"
  130. depends on CPU_FREQ
  131. select CPU_FREQ_GOV_COMMON
  132. help
  133. 'conservative' - this driver is rather similar to the 'ondemand'
  134. governor both in its source code and its purpose, the difference is
  135. its optimisation for better suitability in a battery powered
  136. environment. The frequency is gracefully increased and decreased
  137. rather than jumping to 100% when speed is required.
  138. If you have a desktop machine then you should really be considering
  139. the 'ondemand' governor instead, however if you are using a laptop,
  140. PDA or even an AMD64 based computer (due to the unacceptable
  141. step-by-step latency issues between the minimum and maximum frequency
  142. transitions in the CPU) you will probably want to use this governor.
  143. To compile this driver as a module, choose M here: the
  144. module will be called cpufreq_conservative.
  145. For details, take a look at linux/Documentation/cpu-freq.
  146. If in doubt, say N.
  147. comment "CPU frequency scaling drivers"
  148. config CPUFREQ_DT
  149. tristate "Generic DT based cpufreq driver"
  150. depends on HAVE_CLK && OF
  151. # if CPU_THERMAL is on and THERMAL=m, CPUFREQ_DT cannot be =y:
  152. depends on !CPU_THERMAL || THERMAL
  153. select PM_OPP
  154. help
  155. This adds a generic DT based cpufreq driver for frequency management.
  156. It supports both uniprocessor (UP) and symmetric multiprocessor (SMP)
  157. systems which share clock and voltage across all CPUs.
  158. If in doubt, say N.
  159. if X86
  160. source "drivers/cpufreq/Kconfig.x86"
  161. endif
  162. if ARM || ARM64
  163. source "drivers/cpufreq/Kconfig.arm"
  164. endif
  165. if PPC32 || PPC64
  166. source "drivers/cpufreq/Kconfig.powerpc"
  167. endif
  168. if AVR32
  169. config AVR32_AT32AP_CPUFREQ
  170. bool "CPU frequency driver for AT32AP"
  171. depends on PLATFORM_AT32AP
  172. default n
  173. help
  174. This enables the CPU frequency driver for AT32AP processors.
  175. If in doubt, say N.
  176. endif
  177. if IA64
  178. config IA64_ACPI_CPUFREQ
  179. tristate "ACPI Processor P-States driver"
  180. depends on ACPI_PROCESSOR
  181. help
  182. This driver adds a CPUFreq driver which utilizes the ACPI
  183. Processor Performance States.
  184. For details, take a look at <file:Documentation/cpu-freq/>.
  185. If in doubt, say N.
  186. endif
  187. if MIPS
  188. config LOONGSON2_CPUFREQ
  189. tristate "Loongson2 CPUFreq Driver"
  190. help
  191. This option adds a CPUFreq driver for loongson processors which
  192. support software configurable cpu frequency.
  193. Loongson2F and it's successors support this feature.
  194. For details, take a look at <file:Documentation/cpu-freq/>.
  195. If in doubt, say N.
  196. config LOONGSON1_CPUFREQ
  197. tristate "Loongson1 CPUFreq Driver"
  198. help
  199. This option adds a CPUFreq driver for loongson1 processors which
  200. support software configurable cpu frequency.
  201. For details, take a look at <file:Documentation/cpu-freq/>.
  202. If in doubt, say N.
  203. endif
  204. if SPARC64
  205. config SPARC_US3_CPUFREQ
  206. tristate "UltraSPARC-III CPU Frequency driver"
  207. help
  208. This adds the CPUFreq driver for UltraSPARC-III processors.
  209. For details, take a look at <file:Documentation/cpu-freq>.
  210. If in doubt, say N.
  211. config SPARC_US2E_CPUFREQ
  212. tristate "UltraSPARC-IIe CPU Frequency driver"
  213. help
  214. This adds the CPUFreq driver for UltraSPARC-IIe processors.
  215. For details, take a look at <file:Documentation/cpu-freq>.
  216. If in doubt, say N.
  217. endif
  218. if SUPERH
  219. config SH_CPU_FREQ
  220. tristate "SuperH CPU Frequency driver"
  221. help
  222. This adds the cpufreq driver for SuperH. Any CPU that supports
  223. clock rate rounding through the clock framework can use this
  224. driver. While it will make the kernel slightly larger, this is
  225. harmless for CPUs that don't support rate rounding. The driver
  226. will also generate a notice in the boot log before disabling
  227. itself if the CPU in question is not capable of rate rounding.
  228. For details, take a look at <file:Documentation/cpu-freq>.
  229. If unsure, say N.
  230. endif
  231. endif
  232. endmenu