Kconfig 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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_TABLE
  15. tristate
  16. config CPU_FREQ_STAT
  17. tristate "CPU frequency translation statistics"
  18. select CPU_FREQ_TABLE
  19. default y
  20. help
  21. This driver exports CPU frequency statistics information through sysfs
  22. file system.
  23. To compile this driver as a module, choose M here: the
  24. module will be called cpufreq_stats.
  25. If in doubt, say N.
  26. config CPU_FREQ_STAT_DETAILS
  27. bool "CPU frequency translation statistics details"
  28. depends on CPU_FREQ_STAT
  29. help
  30. This will show detail CPU frequency translation table in sysfs file
  31. system.
  32. If in doubt, say N.
  33. choice
  34. prompt "Default CPUFreq governor"
  35. default CPU_FREQ_DEFAULT_GOV_USERSPACE if CPU_FREQ_SA1100 || CPU_FREQ_SA1110
  36. default CPU_FREQ_DEFAULT_GOV_PERFORMANCE
  37. help
  38. This option sets which CPUFreq governor shall be loaded at
  39. startup. If in doubt, select 'performance'.
  40. config CPU_FREQ_DEFAULT_GOV_PERFORMANCE
  41. bool "performance"
  42. select CPU_FREQ_GOV_PERFORMANCE
  43. help
  44. Use the CPUFreq governor 'performance' as default. This sets
  45. the frequency statically to the highest frequency supported by
  46. the CPU.
  47. config CPU_FREQ_DEFAULT_GOV_POWERSAVE
  48. bool "powersave"
  49. depends on EXPERT
  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. endchoice
  94. config CPU_FREQ_GOV_PERFORMANCE
  95. tristate "'performance' governor"
  96. help
  97. This cpufreq governor sets the frequency statically to the
  98. highest available CPU frequency.
  99. To compile this driver as a module, choose M here: the
  100. module will be called cpufreq_performance.
  101. If in doubt, say Y.
  102. config CPU_FREQ_GOV_POWERSAVE
  103. tristate "'powersave' governor"
  104. help
  105. This cpufreq governor sets the frequency statically to the
  106. lowest available CPU frequency.
  107. To compile this driver as a module, choose M here: the
  108. module will be called cpufreq_powersave.
  109. If in doubt, say Y.
  110. config CPU_FREQ_GOV_USERSPACE
  111. tristate "'userspace' governor for userspace frequency scaling"
  112. help
  113. Enable this cpufreq governor when you either want to set the
  114. CPU frequency manually or when a userspace program shall
  115. be able to set the CPU dynamically, like on LART
  116. <http://www.lartmaker.nl/>.
  117. To compile this driver as a module, choose M here: the
  118. module will be called cpufreq_userspace.
  119. For details, take a look at <file:Documentation/cpu-freq/>.
  120. If in doubt, say Y.
  121. config CPU_FREQ_GOV_ONDEMAND
  122. tristate "'ondemand' cpufreq policy governor"
  123. select CPU_FREQ_TABLE
  124. help
  125. 'ondemand' - This driver adds a dynamic cpufreq policy governor.
  126. The governor does a periodic polling and
  127. changes frequency based on the CPU utilization.
  128. The support for this governor depends on CPU capability to
  129. do fast frequency switching (i.e, very low latency frequency
  130. transitions).
  131. To compile this driver as a module, choose M here: the
  132. module will be called cpufreq_ondemand.
  133. For details, take a look at linux/Documentation/cpu-freq.
  134. If in doubt, say N.
  135. config CPU_FREQ_GOV_INTERACTIVE
  136. tristate "'interactive' cpufreq policy governor"
  137. help
  138. 'interactive' - This driver adds a dynamic cpufreq policy governor
  139. designed for latency-sensitive workloads.
  140. This governor attempts to reduce the latency of clock
  141. increases so that the system is more responsive to
  142. interactive workloads.
  143. To compile this driver as a module, choose M here: the
  144. module will be called cpufreq_interactive.
  145. For details, take a look at linux/Documentation/cpu-freq.
  146. If in doubt, say N.
  147. config CPU_FREQ_GOV_CONSERVATIVE
  148. tristate "'conservative' cpufreq governor"
  149. depends on CPU_FREQ
  150. help
  151. 'conservative' - this driver is rather similar to the 'ondemand'
  152. governor both in its source code and its purpose, the difference is
  153. its optimisation for better suitability in a battery powered
  154. environment. The frequency is gracefully increased and decreased
  155. rather than jumping to 100% when speed is required.
  156. If you have a desktop machine then you should really be considering
  157. the 'ondemand' governor instead, however if you are using a laptop,
  158. PDA or even an AMD64 based computer (due to the unacceptable
  159. step-by-step latency issues between the minimum and maximum frequency
  160. transitions in the CPU) you will probably want to use this governor.
  161. To compile this driver as a module, choose M here: the
  162. module will be called cpufreq_conservative.
  163. For details, take a look at linux/Documentation/cpu-freq.
  164. If in doubt, say N.
  165. menu "x86 CPU frequency scaling drivers"
  166. depends on X86
  167. source "drivers/cpufreq/Kconfig.x86"
  168. endmenu
  169. endif
  170. endmenu