Kconfig 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. config SUSPEND
  2. bool "Suspend to RAM and standby"
  3. depends on ARCH_SUSPEND_POSSIBLE
  4. default y
  5. ---help---
  6. Allow the system to enter sleep states in which main memory is
  7. powered and thus its contents are preserved, such as the
  8. suspend-to-RAM state (e.g. the ACPI S3 state).
  9. config SUSPEND_FREEZER
  10. bool "Enable freezer for suspend to RAM/standby" \
  11. if ARCH_WANTS_FREEZER_CONTROL || BROKEN
  12. depends on SUSPEND
  13. default y
  14. help
  15. This allows you to turn off the freezer for suspend. If this is
  16. done, no tasks are frozen for suspend to RAM/standby.
  17. Turning OFF this setting is NOT recommended! If in doubt, say Y.
  18. config CPU_FREQ_LIMIT_USERSPACE
  19. bool "User space cpufreq limit interface"
  20. depends on CPU_FREQ_LIMIT
  21. default n
  22. help
  23. Add sysfs to limit CPU frequency for a userspace program.
  24. /sys/power/cpufreq_min_limit
  25. /sys/power/cpufreq_max_limit
  26. /sys/power/cpufreq_table
  27. config HAS_WAKELOCK
  28. bool
  29. default y
  30. config WAKELOCK
  31. bool
  32. default y
  33. config HIBERNATE_CALLBACKS
  34. bool
  35. config HIBERNATION
  36. bool "Hibernation (aka 'suspend to disk')"
  37. depends on SWAP && ARCH_HIBERNATION_POSSIBLE
  38. select HIBERNATE_CALLBACKS
  39. select LZO_COMPRESS
  40. select LZO_DECOMPRESS
  41. select CRC32
  42. ---help---
  43. Enable the suspend to disk (STD) functionality, which is usually
  44. called "hibernation" in user interfaces. STD checkpoints the
  45. system and powers it off; and restores that checkpoint on reboot.
  46. You can suspend your machine with 'echo disk > /sys/power/state'
  47. after placing resume=/dev/swappartition on the kernel command line
  48. in your bootloader's configuration file.
  49. Alternatively, you can use the additional userland tools available
  50. from <http://suspend.sf.net>.
  51. In principle it does not require ACPI or APM, although for example
  52. ACPI will be used for the final steps when it is available. One
  53. of the reasons to use software suspend is that the firmware hooks
  54. for suspend states like suspend-to-RAM (STR) often don't work very
  55. well with Linux.
  56. It creates an image which is saved in your active swap. Upon the next
  57. boot, pass the 'resume=/dev/swappartition' argument to the kernel to
  58. have it detect the saved image, restore memory state from it, and
  59. continue to run as before. If you do not want the previous state to
  60. be reloaded, then use the 'noresume' kernel command line argument.
  61. Note, however, that fsck will be run on your filesystems and you will
  62. need to run mkswap against the swap partition used for the suspend.
  63. It also works with swap files to a limited extent (for details see
  64. <file:Documentation/power/swsusp-and-swap-files.txt>).
  65. Right now you may boot without resuming and resume later but in the
  66. meantime you cannot use the swap partition(s)/file(s) involved in
  67. suspending. Also in this case you must not use the filesystems
  68. that were mounted before the suspend. In particular, you MUST NOT
  69. MOUNT any journaled filesystems mounted before the suspend or they
  70. will get corrupted in a nasty way.
  71. For more information take a look at <file:Documentation/power/swsusp.txt>.
  72. config ARCH_SAVE_PAGE_KEYS
  73. bool
  74. config PM_STD_PARTITION
  75. string "Default resume partition"
  76. depends on HIBERNATION
  77. default ""
  78. ---help---
  79. The default resume partition is the partition that the suspend-
  80. to-disk implementation will look for a suspended disk image.
  81. The partition specified here will be different for almost every user.
  82. It should be a valid swap partition (at least for now) that is turned
  83. on before suspending.
  84. The partition specified can be overridden by specifying:
  85. resume=/dev/<other device>
  86. which will set the resume partition to the device specified.
  87. Note there is currently not a way to specify which device to save the
  88. suspended image to. It will simply pick the first available swap
  89. device.
  90. config PM_SLEEP
  91. def_bool y
  92. depends on SUSPEND || HIBERNATE_CALLBACKS
  93. config PM_SLEEP_SMP
  94. def_bool y
  95. depends on SMP
  96. depends on ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE
  97. depends on PM_SLEEP
  98. select HOTPLUG
  99. select HOTPLUG_CPU
  100. config PM_AUTOSLEEP
  101. bool "Opportunistic sleep"
  102. depends on PM_SLEEP
  103. default n
  104. ---help---
  105. Allow the kernel to trigger a system transition into a global sleep
  106. state automatically whenever there are no active wakeup sources.
  107. config PM_WAKELOCKS
  108. bool "User space wakeup sources interface"
  109. depends on PM_SLEEP
  110. default n
  111. ---help---
  112. Allow user space to create, activate and deactivate wakeup source
  113. objects with the help of a sysfs-based interface.
  114. config PM_WAKELOCKS_LIMIT
  115. int "Maximum number of user space wakeup sources (0 = no limit)"
  116. range 0 100000
  117. default 100
  118. depends on PM_WAKELOCKS
  119. config PM_WAKELOCKS_GC
  120. bool "Garbage collector for user space wakeup sources"
  121. depends on PM_WAKELOCKS
  122. default y
  123. config PM_RUNTIME
  124. bool "Run-time PM core functionality"
  125. depends on !IA64_HP_SIM
  126. ---help---
  127. Enable functionality allowing I/O devices to be put into energy-saving
  128. (low power) states at run time (or autosuspended) after a specified
  129. period of inactivity and woken up in response to a hardware-generated
  130. wake-up event or a driver's request.
  131. Hardware support is generally required for this functionality to work
  132. and the bus type drivers of the buses the devices are on are
  133. responsible for the actual handling of the autosuspend requests and
  134. wake-up events.
  135. config PM
  136. def_bool y
  137. depends on PM_SLEEP || PM_RUNTIME
  138. config PM_DEBUG
  139. bool "Power Management Debug Support"
  140. depends on PM
  141. ---help---
  142. This option enables various debugging support in the Power Management
  143. code. This is helpful when debugging and reporting PM bugs, like
  144. suspend support.
  145. config PM_ADVANCED_DEBUG
  146. bool "Extra PM attributes in sysfs for low-level debugging/testing"
  147. depends on PM_DEBUG
  148. ---help---
  149. Add extra sysfs attributes allowing one to access some Power Management
  150. fields of device objects from user space. If you are not a kernel
  151. developer interested in debugging/testing Power Management, say "no".
  152. config PM_TEST_SUSPEND
  153. bool "Test suspend/resume and wakealarm during bootup"
  154. depends on SUSPEND && PM_DEBUG && RTC_CLASS=y
  155. ---help---
  156. This option will let you suspend your machine during bootup, and
  157. make it wake up a few seconds later using an RTC wakeup alarm.
  158. Enable this with a kernel parameter like "test_suspend=mem".
  159. You probably want to have your system's RTC driver statically
  160. linked, ensuring that it's available when this test runs.
  161. config CAN_PM_TRACE
  162. def_bool y
  163. depends on PM_DEBUG && PM_SLEEP
  164. config PM_TRACE
  165. bool
  166. help
  167. This enables code to save the last PM event point across
  168. reboot. The architecture needs to support this, x86 for
  169. example does by saving things in the RTC, see below.
  170. The architecture specific code must provide the extern
  171. functions from <linux/resume-trace.h> as well as the
  172. <asm/resume-trace.h> header with a TRACE_RESUME() macro.
  173. The way the information is presented is architecture-
  174. dependent, x86 will print the information during a
  175. late_initcall.
  176. config PM_TRACE_RTC
  177. bool "Suspend/resume event tracing"
  178. depends on CAN_PM_TRACE
  179. depends on X86
  180. select PM_TRACE
  181. ---help---
  182. This enables some cheesy code to save the last PM event point in the
  183. RTC across reboots, so that you can debug a machine that just hangs
  184. during suspend (or more commonly, during resume).
  185. To use this debugging feature you should attempt to suspend the
  186. machine, reboot it and then run
  187. dmesg -s 1000000 | grep 'hash matches'
  188. CAUTION: this option will cause your machine's real-time clock to be
  189. set to an invalid time after a resume.
  190. config APM_EMULATION
  191. tristate "Advanced Power Management Emulation"
  192. depends on PM && SYS_SUPPORTS_APM_EMULATION
  193. help
  194. APM is a BIOS specification for saving power using several different
  195. techniques. This is mostly useful for battery powered laptops with
  196. APM compliant BIOSes. If you say Y here, the system time will be
  197. reset after a RESUME operation, the /proc/apm device will provide
  198. battery status information, and user-space programs will receive
  199. notification of APM "events" (e.g. battery status change).
  200. In order to use APM, you will need supporting software. For location
  201. and more information, read <file:Documentation/power/apm-acpi.txt>
  202. and the Battery Powered Linux mini-HOWTO, available from
  203. <http://www.tldp.org/docs.html#howto>.
  204. This driver does not spin down disk drives (see the hdparm(8)
  205. manpage ("man 8 hdparm") for that), and it doesn't turn off
  206. VESA-compliant "green" monitors.
  207. Generally, if you don't have a battery in your machine, there isn't
  208. much point in using this driver and you should say N. If you get
  209. random kernel OOPSes or reboots that don't seem to be related to
  210. anything, try disabling/enabling this option (or disabling/enabling
  211. APM in your BIOS).
  212. config ARCH_HAS_OPP
  213. bool
  214. config PM_OPP
  215. bool "Operating Performance Point (OPP) Layer library"
  216. depends on ARCH_HAS_OPP
  217. ---help---
  218. SOCs have a standard set of tuples consisting of frequency and
  219. voltage pairs that the device will support per voltage domain. This
  220. is called Operating Performance Point or OPP. The actual definitions
  221. of OPP varies over silicon within the same family of devices.
  222. OPP layer organizes the data internally using device pointers
  223. representing individual voltage domains and provides SOC
  224. implementations a ready to use framework to manage OPPs.
  225. For more information, read <file:Documentation/power/opp.txt>
  226. config PM_CLK
  227. def_bool y
  228. depends on PM && HAVE_CLK
  229. config PM_GENERIC_DOMAINS
  230. bool
  231. depends on PM
  232. config PM_GENERIC_DOMAINS_RUNTIME
  233. def_bool y
  234. depends on PM_RUNTIME && PM_GENERIC_DOMAINS
  235. config CPU_PM
  236. bool
  237. depends on SUSPEND || CPU_IDLE
  238. config SUSPEND_TIME
  239. bool "Log time spent in suspend"
  240. ---help---
  241. Prints the time spent in suspend in the kernel log, and
  242. keeps statistics on the time spent in suspend in
  243. /sys/kernel/debug/suspend_time