xref: /linux/kernel/power/Kconfig (revision 2068d7715e947f0321bc676a44215d3983af4bbc)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2296699deSRafael J. Wysockiconfig SUSPEND
3296699deSRafael J. Wysocki	bool "Suspend to RAM and standby"
41eb208aeSRafael J. Wysocki	depends on ARCH_SUSPEND_POSSIBLE
5296699deSRafael J. Wysocki	default y
6a7f7f624SMasahiro Yamada	help
7296699deSRafael J. Wysocki	  Allow the system to enter sleep states in which main memory is
8296699deSRafael J. Wysocki	  powered and thus its contents are preserved, such as the
9f4cb5700SJohannes Berg	  suspend-to-RAM state (e.g. the ACPI S3 state).
10296699deSRafael J. Wysocki
11b28f5081SJohannes Bergconfig SUSPEND_FREEZER
12b28f5081SJohannes Berg	bool "Enable freezer for suspend to RAM/standby" \
13b28f5081SJohannes Berg		if ARCH_WANTS_FREEZER_CONTROL || BROKEN
14b28f5081SJohannes Berg	depends on SUSPEND
15b28f5081SJohannes Berg	default y
16b28f5081SJohannes Berg	help
17b28f5081SJohannes Berg	  This allows you to turn off the freezer for suspend. If this is
18b28f5081SJohannes Berg	  done, no tasks are frozen for suspend to RAM/standby.
19b28f5081SJohannes Berg
20b28f5081SJohannes Berg	  Turning OFF this setting is NOT recommended! If in doubt, say Y.
21b28f5081SJohannes Berg
222fd77fffSLen Brownconfig SUSPEND_SKIP_SYNC
232fd77fffSLen Brown	bool "Skip kernel's sys_sync() on suspend to RAM/standby"
242fd77fffSLen Brown	depends on SUSPEND
252fd77fffSLen Brown	depends on EXPERT
262fd77fffSLen Brown	help
272fd77fffSLen Brown	  Skip the kernel sys_sync() before freezing user processes.
282fd77fffSLen Brown	  Some systems prefer not to pay this cost on every invocation
292fd77fffSLen Brown	  of suspend, or they are content with invoking sync() from
30c052bf82SJonas Meurer	  user-space before invoking suspend.  There's a run-time switch
31c052bf82SJonas Meurer	  at '/sys/power/sync_on_suspend' to configure this behaviour.
32c052bf82SJonas Meurer	  This setting changes the default for the run-tim switch. Say Y
33c052bf82SJonas Meurer	  to change the default to disable the kernel sys_sync().
342fd77fffSLen Brown
351f112ceeSRafael J. Wysockiconfig HIBERNATE_CALLBACKS
361f112ceeSRafael J. Wysocki	bool
371f112ceeSRafael J. Wysocki
38b0cb1a19SRafael J. Wysockiconfig HIBERNATION
39296699deSRafael J. Wysocki	bool "Hibernation (aka 'suspend to disk')"
401eb208aeSRafael J. Wysocki	depends on SWAP && ARCH_HIBERNATION_POSSIBLE
411f112ceeSRafael J. Wysocki	select HIBERNATE_CALLBACKS
42081a9d04SBojan Smojver	select CRC32
43a06c6f5dSNikhil V	select CRYPTO
44a06c6f5dSNikhil V	select CRYPTO_LZO
45*2068d771Sl1rox3	select CRYPTO_LZ4
46a7f7f624SMasahiro Yamada	help
47a7ee2e5fSDavid Brownell	  Enable the suspend to disk (STD) functionality, which is usually
48a7ee2e5fSDavid Brownell	  called "hibernation" in user interfaces.  STD checkpoints the
49a7ee2e5fSDavid Brownell	  system and powers it off; and restores that checkpoint on reboot.
501da177e4SLinus Torvalds
5123b168d4SPavel Machek	  You can suspend your machine with 'echo disk > /sys/power/state'
5223b168d4SPavel Machek	  after placing resume=/dev/swappartition on the kernel command line
5323b168d4SPavel Machek	  in your bootloader's configuration file.
5423b168d4SPavel Machek
55c7276fdeSRafael J. Wysocki	  Alternatively, you can use the additional userland tools available
56c7276fdeSRafael J. Wysocki	  from <http://suspend.sf.net>.
57c7276fdeSRafael J. Wysocki
58c7276fdeSRafael J. Wysocki	  In principle it does not require ACPI or APM, although for example
59a7ee2e5fSDavid Brownell	  ACPI will be used for the final steps when it is available.  One
60a7ee2e5fSDavid Brownell	  of the reasons to use software suspend is that the firmware hooks
61a7ee2e5fSDavid Brownell	  for suspend states like suspend-to-RAM (STR) often don't work very
62a7ee2e5fSDavid Brownell	  well with Linux.
63c7276fdeSRafael J. Wysocki
64c7276fdeSRafael J. Wysocki	  It creates an image which is saved in your active swap. Upon the next
651da177e4SLinus Torvalds	  boot, pass the 'resume=/dev/swappartition' argument to the kernel to
661da177e4SLinus Torvalds	  have it detect the saved image, restore memory state from it, and
671da177e4SLinus Torvalds	  continue to run as before. If you do not want the previous state to
68c7276fdeSRafael J. Wysocki	  be reloaded, then use the 'noresume' kernel command line argument.
69c7276fdeSRafael J. Wysocki	  Note, however, that fsck will be run on your filesystems and you will
70c7276fdeSRafael J. Wysocki	  need to run mkswap against the swap partition used for the suspend.
711da177e4SLinus Torvalds
72c7276fdeSRafael J. Wysocki	  It also works with swap files to a limited extent (for details see
73151f4e2bSMauro Carvalho Chehab	  <file:Documentation/power/swsusp-and-swap-files.rst>).
74c7276fdeSRafael J. Wysocki
75c7276fdeSRafael J. Wysocki	  Right now you may boot without resuming and resume later but in the
76c7276fdeSRafael J. Wysocki	  meantime you cannot use the swap partition(s)/file(s) involved in
77c7276fdeSRafael J. Wysocki	  suspending.  Also in this case you must not use the filesystems
78c7276fdeSRafael J. Wysocki	  that were mounted before the suspend.  In particular, you MUST NOT
79c7276fdeSRafael J. Wysocki	  MOUNT any journaled filesystems mounted before the suspend or they
80c7276fdeSRafael J. Wysocki	  will get corrupted in a nasty way.
811da177e4SLinus Torvalds
82151f4e2bSMauro Carvalho Chehab	  For more information take a look at <file:Documentation/power/swsusp.rst>.
831da177e4SLinus Torvalds
84c4f39a6cSDomenico Andreoliconfig HIBERNATION_SNAPSHOT_DEV
85c4f39a6cSDomenico Andreoli	bool "Userspace snapshot device"
86c4f39a6cSDomenico Andreoli	depends on HIBERNATION
87c4f39a6cSDomenico Andreoli	default y
88a7f7f624SMasahiro Yamada	help
89c4f39a6cSDomenico Andreoli	  Device used by the uswsusp tools.
90c4f39a6cSDomenico Andreoli
91c4f39a6cSDomenico Andreoli	  Say N if no snapshotting from userspace is needed, this also
92c4f39a6cSDomenico Andreoli	  reduces the attack surface of the kernel.
93c4f39a6cSDomenico Andreoli
94c4f39a6cSDomenico Andreoli	  If in doubt, say Y.
95c4f39a6cSDomenico Andreoli
96a06c6f5dSNikhil Vchoice
97a06c6f5dSNikhil V	prompt "Default compressor"
98a06c6f5dSNikhil V	default HIBERNATION_COMP_LZO
99a06c6f5dSNikhil V	depends on HIBERNATION
100a06c6f5dSNikhil V
101a06c6f5dSNikhil Vconfig HIBERNATION_COMP_LZO
102a06c6f5dSNikhil V	bool "lzo"
103a06c6f5dSNikhil V	depends on CRYPTO_LZO
104a06c6f5dSNikhil V
1058bc29736SNikhil Vconfig HIBERNATION_COMP_LZ4
1068bc29736SNikhil V	bool "lz4"
1078bc29736SNikhil V	depends on CRYPTO_LZ4
1088bc29736SNikhil V
109a06c6f5dSNikhil Vendchoice
110a06c6f5dSNikhil V
111a06c6f5dSNikhil Vconfig HIBERNATION_DEF_COMP
112a06c6f5dSNikhil V	string
113a06c6f5dSNikhil V	default "lzo" if HIBERNATION_COMP_LZO
1148bc29736SNikhil V	default "lz4" if HIBERNATION_COMP_LZ4
115a06c6f5dSNikhil V	help
116a06c6f5dSNikhil V	  Default compressor to be used for hibernation.
117a06c6f5dSNikhil V
1181da177e4SLinus Torvaldsconfig PM_STD_PARTITION
1191da177e4SLinus Torvalds	string "Default resume partition"
120b0cb1a19SRafael J. Wysocki	depends on HIBERNATION
1211da177e4SLinus Torvalds	default ""
122a7f7f624SMasahiro Yamada	help
1231da177e4SLinus Torvalds	  The default resume partition is the partition that the suspend-
1241da177e4SLinus Torvalds	  to-disk implementation will look for a suspended disk image.
1251da177e4SLinus Torvalds
1261da177e4SLinus Torvalds	  The partition specified here will be different for almost every user.
1271da177e4SLinus Torvalds	  It should be a valid swap partition (at least for now) that is turned
1281da177e4SLinus Torvalds	  on before suspending.
1291da177e4SLinus Torvalds
1301da177e4SLinus Torvalds	  The partition specified can be overridden by specifying:
1311da177e4SLinus Torvalds
1321da177e4SLinus Torvalds		resume=/dev/<other device>
1331da177e4SLinus Torvalds
1341da177e4SLinus Torvalds	  which will set the resume partition to the device specified.
1351da177e4SLinus Torvalds
1361da177e4SLinus Torvalds	  Note there is currently not a way to specify which device to save the
1371da177e4SLinus Torvalds	  suspended image to. It will simply pick the first available swap
1381da177e4SLinus Torvalds	  device.
1391da177e4SLinus Torvalds
140196ec243SRafael J. Wysockiconfig PM_SLEEP
141cf4fb80cSJan Beulich	def_bool y
142d419e4c0SShriram Rajagopalan	depends on SUSPEND || HIBERNATE_CALLBACKS
143464ed18eSRafael J. Wysocki	select PM
144196ec243SRafael J. Wysocki
145196ec243SRafael J. Wysockiconfig PM_SLEEP_SMP
146cf4fb80cSJan Beulich	def_bool y
147196ec243SRafael J. Wysocki	depends on SMP
148196ec243SRafael J. Wysocki	depends on ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE
149196ec243SRafael J. Wysocki	depends on PM_SLEEP
150196ec243SRafael J. Wysocki	select HOTPLUG_CPU
151196ec243SRafael J. Wysocki
1529ca12ac0SNicholas Pigginconfig PM_SLEEP_SMP_NONZERO_CPU
1539ca12ac0SNicholas Piggin	def_bool y
1549ca12ac0SNicholas Piggin	depends on PM_SLEEP_SMP
1559ca12ac0SNicholas Piggin	depends on ARCH_SUSPEND_NONZERO_CPU
156a7f7f624SMasahiro Yamada	help
1579ca12ac0SNicholas Piggin	If an arch can suspend (for suspend, hibernate, kexec, etc) on a
1589ca12ac0SNicholas Piggin	non-zero numbered CPU, it may define ARCH_SUSPEND_NONZERO_CPU. This
1599ca12ac0SNicholas Piggin	will allow nohz_full mask to include CPU0.
1609ca12ac0SNicholas Piggin
1617483b4a4SRafael J. Wysockiconfig PM_AUTOSLEEP
1627483b4a4SRafael J. Wysocki	bool "Opportunistic sleep"
1637483b4a4SRafael J. Wysocki	depends on PM_SLEEP
164a7f7f624SMasahiro Yamada	help
1657483b4a4SRafael J. Wysocki	Allow the kernel to trigger a system transition into a global sleep
1667483b4a4SRafael J. Wysocki	state automatically whenever there are no active wakeup sources.
1677483b4a4SRafael J. Wysocki
168261e224dSKalesh Singhconfig PM_USERSPACE_AUTOSLEEP
169261e224dSKalesh Singh	bool "Userspace opportunistic sleep"
170261e224dSKalesh Singh	depends on PM_SLEEP
171261e224dSKalesh Singh	help
172261e224dSKalesh Singh	Notify kernel of aggressive userspace autosleep power management policy.
173261e224dSKalesh Singh
174261e224dSKalesh Singh	This option changes the behavior of various sleep-sensitive code to deal
175261e224dSKalesh Singh	with frequent userspace-initiated transitions into a global sleep state.
176261e224dSKalesh Singh
177261e224dSKalesh Singh	Saying Y here, disables code paths that most users really should keep
178261e224dSKalesh Singh	enabled. In particular, only enable this if it is very common to be
179261e224dSKalesh Singh	asleep/awake for very short periods of time (<= 2 seconds).
180261e224dSKalesh Singh
181261e224dSKalesh Singh	Only platforms, such as Android, that implement opportunistic sleep from
182261e224dSKalesh Singh	a userspace power manager service should enable this option; and not
183261e224dSKalesh Singh	other machines. Therefore, you should say N here, unless you are
184261e224dSKalesh Singh	extremely certain that this is what you want. The option otherwise has
185261e224dSKalesh Singh	bad, undesirable effects, and should not be enabled just for fun.
186261e224dSKalesh Singh
187261e224dSKalesh Singh
188b86ff982SRafael J. Wysockiconfig PM_WAKELOCKS
189b86ff982SRafael J. Wysocki	bool "User space wakeup sources interface"
190b86ff982SRafael J. Wysocki	depends on PM_SLEEP
191a7f7f624SMasahiro Yamada	help
192b86ff982SRafael J. Wysocki	Allow user space to create, activate and deactivate wakeup source
193b86ff982SRafael J. Wysocki	objects with the help of a sysfs-based interface.
194b86ff982SRafael J. Wysocki
195c73893e2SRafael J. Wysockiconfig PM_WAKELOCKS_LIMIT
196c73893e2SRafael J. Wysocki	int "Maximum number of user space wakeup sources (0 = no limit)"
197c73893e2SRafael J. Wysocki	range 0 100000
198c73893e2SRafael J. Wysocki	default 100
199c73893e2SRafael J. Wysocki	depends on PM_WAKELOCKS
200c73893e2SRafael J. Wysocki
2014e585d25SRafael J. Wysockiconfig PM_WAKELOCKS_GC
2024e585d25SRafael J. Wysocki	bool "Garbage collector for user space wakeup sources"
2034e585d25SRafael J. Wysocki	depends on PM_WAKELOCKS
2044e585d25SRafael J. Wysocki	default y
2054e585d25SRafael J. Wysocki
206a4e6512aSUlf Hanssonconfig PM_QOS_CPU_SYSTEM_WAKEUP
207a4e6512aSUlf Hansson	bool "User space interface for CPU system wakeup QoS"
208a4e6512aSUlf Hansson	depends on CPU_IDLE
209a4e6512aSUlf Hansson	help
210a4e6512aSUlf Hansson	  Enable this to allow user space via the cpu_wakeup_latency file to
211a4e6512aSUlf Hansson	  specify a CPU system wakeup latency limit.
212a4e6512aSUlf Hansson
213a4e6512aSUlf Hansson	  This may be particularly useful for platforms supporting multiple low
214a4e6512aSUlf Hansson	  power states for CPUs during system-wide suspend and s2idle in
215a4e6512aSUlf Hansson	  particular.
216a4e6512aSUlf Hansson
217464ed18eSRafael J. Wysockiconfig PM
218464ed18eSRafael J. Wysocki	bool "Device power management core functionality"
219a7f7f624SMasahiro Yamada	help
220196ec243SRafael J. Wysocki	  Enable functionality allowing I/O devices to be put into energy-saving
221464ed18eSRafael J. Wysocki	  (low power) states, for example after a specified period of inactivity
222464ed18eSRafael J. Wysocki	  (autosuspended), and woken up in response to a hardware-generated
223196ec243SRafael J. Wysocki	  wake-up event or a driver's request.
224196ec243SRafael J. Wysocki
225196ec243SRafael J. Wysocki	  Hardware support is generally required for this functionality to work
226196ec243SRafael J. Wysocki	  and the bus type drivers of the buses the devices are on are
227464ed18eSRafael J. Wysocki	  responsible for the actual handling of device suspend requests and
228196ec243SRafael J. Wysocki	  wake-up events.
229196ec243SRafael J. Wysocki
230196ec243SRafael J. Wysockiconfig PM_DEBUG
231196ec243SRafael J. Wysocki	bool "Power Management Debug Support"
232196ec243SRafael J. Wysocki	depends on PM
233a7f7f624SMasahiro Yamada	help
234196ec243SRafael J. Wysocki	This option enables various debugging support in the Power Management
235196ec243SRafael J. Wysocki	code. This is helpful when debugging and reporting PM bugs, like
236196ec243SRafael J. Wysocki	suspend support.
237196ec243SRafael J. Wysocki
238196ec243SRafael J. Wysockiconfig PM_ADVANCED_DEBUG
239196ec243SRafael J. Wysocki	bool "Extra PM attributes in sysfs for low-level debugging/testing"
240196ec243SRafael J. Wysocki	depends on PM_DEBUG
241a7f7f624SMasahiro Yamada	help
242196ec243SRafael J. Wysocki	Add extra sysfs attributes allowing one to access some Power Management
243196ec243SRafael J. Wysocki	fields of device objects from user space.  If you are not a kernel
244196ec243SRafael J. Wysocki	developer interested in debugging/testing Power Management, say "no".
245196ec243SRafael J. Wysocki
246196ec243SRafael J. Wysockiconfig PM_TEST_SUSPEND
247196ec243SRafael J. Wysocki	bool "Test suspend/resume and wakealarm during bootup"
248196ec243SRafael J. Wysocki	depends on SUSPEND && PM_DEBUG && RTC_CLASS=y
249a7f7f624SMasahiro Yamada	help
250196ec243SRafael J. Wysocki	This option will let you suspend your machine during bootup, and
251196ec243SRafael J. Wysocki	make it wake up a few seconds later using an RTC wakeup alarm.
252196ec243SRafael J. Wysocki	Enable this with a kernel parameter like "test_suspend=mem".
253196ec243SRafael J. Wysocki
254196ec243SRafael J. Wysocki	You probably want to have your system's RTC driver statically
255196ec243SRafael J. Wysocki	linked, ensuring that it's available when this test runs.
256196ec243SRafael J. Wysocki
257b2df1d4fSRafael J. Wysockiconfig PM_SLEEP_DEBUG
258196ec243SRafael J. Wysocki	def_bool y
25988a6f33eSRafael J. Wysocki	depends on PM_DEBUG && PM_SLEEP
260196ec243SRafael J. Wysocki
26170fea60dSBenoit Gobyconfig DPM_WATCHDOG
26270fea60dSBenoit Goby	bool "Device suspend/resume watchdog"
2635b3f249cSChen Yu	depends on PM_DEBUG && PSTORE && EXPERT
264a7f7f624SMasahiro Yamada	help
26570fea60dSBenoit Goby	  Sets up a watchdog timer to capture drivers that are
26670fea60dSBenoit Goby	  locked up attempting to suspend/resume a device.
26770fea60dSBenoit Goby	  A detected lockup causes system panic with message
26870fea60dSBenoit Goby	  captured in pstore device for inspection in subsequent
26970fea60dSBenoit Goby	  boot session.
27070fea60dSBenoit Goby
27170fea60dSBenoit Gobyconfig DPM_WATCHDOG_TIMEOUT
27256cabb93SDouglas Anderson	int "Watchdog timeout to panic in seconds"
27370fea60dSBenoit Goby	range 1 120
2745b3f249cSChen Yu	default 120
27570fea60dSBenoit Goby	depends on DPM_WATCHDOG
27670fea60dSBenoit Goby
27756cabb93SDouglas Andersonconfig DPM_WATCHDOG_WARNING_TIMEOUT
27856cabb93SDouglas Anderson	int "Watchdog timeout to warn in seconds"
27956cabb93SDouglas Anderson	range 1 DPM_WATCHDOG_TIMEOUT
28056cabb93SDouglas Anderson	default DPM_WATCHDOG_TIMEOUT
28156cabb93SDouglas Anderson	depends on DPM_WATCHDOG
28256cabb93SDouglas Anderson	help
28356cabb93SDouglas Anderson	  If the DPM watchdog warning timeout and main timeout are
28456cabb93SDouglas Anderson	  different then a non-fatal warning (with a stack trace of
28556cabb93SDouglas Anderson	  the stuck suspend routine) will be printed when the warning
28656cabb93SDouglas Anderson	  timeout expires. If the suspend routine gets un-stuck
28756cabb93SDouglas Anderson	  before the main timeout expires then no other action is
28856cabb93SDouglas Anderson	  taken. If the routine continues to be stuck and the main
28956cabb93SDouglas Anderson	  timeout expires then an emergency-level message and stack
29056cabb93SDouglas Anderson	  trace will be printed and the system will panic.
29156cabb93SDouglas Anderson
29256cabb93SDouglas Anderson	  If the warning timeout is equal to the main timeout (the
29356cabb93SDouglas Anderson	  default) then the warning will never happen and the system
29456cabb93SDouglas Anderson	  will jump straight to panic when the main timeout expires.
29556cabb93SDouglas Anderson
296196ec243SRafael J. Wysockiconfig PM_TRACE
297196ec243SRafael J. Wysocki	bool
298196ec243SRafael J. Wysocki	help
299196ec243SRafael J. Wysocki	  This enables code to save the last PM event point across
300196ec243SRafael J. Wysocki	  reboot. The architecture needs to support this, x86 for
301196ec243SRafael J. Wysocki	  example does by saving things in the RTC, see below.
302196ec243SRafael J. Wysocki
303196ec243SRafael J. Wysocki	  The architecture specific code must provide the extern
304196ec243SRafael J. Wysocki	  functions from <linux/resume-trace.h> as well as the
305196ec243SRafael J. Wysocki	  <asm/resume-trace.h> header with a TRACE_RESUME() macro.
306196ec243SRafael J. Wysocki
307196ec243SRafael J. Wysocki	  The way the information is presented is architecture-
308196ec243SRafael J. Wysocki	  dependent, x86 will print the information during a
309196ec243SRafael J. Wysocki	  late_initcall.
310196ec243SRafael J. Wysocki
311196ec243SRafael J. Wysockiconfig PM_TRACE_RTC
312196ec243SRafael J. Wysocki	bool "Suspend/resume event tracing"
313b2df1d4fSRafael J. Wysocki	depends on PM_SLEEP_DEBUG
314196ec243SRafael J. Wysocki	depends on X86
315196ec243SRafael J. Wysocki	select PM_TRACE
316a7f7f624SMasahiro Yamada	help
317196ec243SRafael J. Wysocki	This enables some cheesy code to save the last PM event point in the
318196ec243SRafael J. Wysocki	RTC across reboots, so that you can debug a machine that just hangs
319196ec243SRafael J. Wysocki	during suspend (or more commonly, during resume).
320196ec243SRafael J. Wysocki
321196ec243SRafael J. Wysocki	To use this debugging feature you should attempt to suspend the
322196ec243SRafael J. Wysocki	machine, reboot it and then run
323196ec243SRafael J. Wysocki
324196ec243SRafael J. Wysocki		dmesg -s 1000000 | grep 'hash matches'
325196ec243SRafael J. Wysocki
326196ec243SRafael J. Wysocki	CAUTION: this option will cause your machine's real-time clock to be
327196ec243SRafael J. Wysocki	set to an invalid time after a resume.
328196ec243SRafael J. Wysocki
3297726942fSRalf Baechleconfig APM_EMULATION
3307726942fSRalf Baechle	tristate "Advanced Power Management Emulation"
331993e9fe1SArnd Bergmann	depends on SYS_SUPPORTS_APM_EMULATION
3327726942fSRalf Baechle	help
3337726942fSRalf Baechle	  APM is a BIOS specification for saving power using several different
3347726942fSRalf Baechle	  techniques. This is mostly useful for battery powered laptops with
3357726942fSRalf Baechle	  APM compliant BIOSes. If you say Y here, the system time will be
3367726942fSRalf Baechle	  reset after a RESUME operation, the /proc/apm device will provide
3377726942fSRalf Baechle	  battery status information, and user-space programs will receive
3387726942fSRalf Baechle	  notification of APM "events" (e.g. battery status change).
3397726942fSRalf Baechle
3407726942fSRalf Baechle	  In order to use APM, you will need supporting software. For location
341151f4e2bSMauro Carvalho Chehab	  and more information, read <file:Documentation/power/apm-acpi.rst>
3422dc98fd3SMichael Witten	  and the Battery Powered Linux mini-HOWTO, available from
3437726942fSRalf Baechle	  <http://www.tldp.org/docs.html#howto>.
3447726942fSRalf Baechle
3457726942fSRalf Baechle	  This driver does not spin down disk drives (see the hdparm(8)
3467726942fSRalf Baechle	  manpage ("man 8 hdparm") for that), and it doesn't turn off
3477726942fSRalf Baechle	  VESA-compliant "green" monitors.
3487726942fSRalf Baechle
3497726942fSRalf Baechle	  Generally, if you don't have a battery in your machine, there isn't
3507726942fSRalf Baechle	  much point in using this driver and you should say N. If you get
3517726942fSRalf Baechle	  random kernel OOPSes or reboots that don't seem to be related to
3527726942fSRalf Baechle	  anything, try disabling/enabling this option (or disabling/enabling
3537726942fSRalf Baechle	  APM in your BIOS).
3545e928f77SRafael J. Wysocki
355b7b95920SRafael J. Wysockiconfig PM_CLK
35685eb8c8dSRafael J. Wysocki	def_bool y
357b7b95920SRafael J. Wysocki	depends on PM && HAVE_CLK
358f721889fSRafael J. Wysocki
359f721889fSRafael J. Wysockiconfig PM_GENERIC_DOMAINS
360f721889fSRafael J. Wysocki	bool
361f721889fSRafael J. Wysocki	depends on PM
36217f2ae7fSRafael J. Wysocki
363cee22a15SViresh Kumarconfig WQ_POWER_EFFICIENT_DEFAULT
364cee22a15SViresh Kumar	bool "Enable workqueue power-efficient mode by default"
365cee22a15SViresh Kumar	depends on PM
366cee22a15SViresh Kumar	help
367cee22a15SViresh Kumar	  Per-cpu workqueues are generally preferred because they show
368cee22a15SViresh Kumar	  better performance thanks to cache locality; unfortunately,
369cee22a15SViresh Kumar	  per-cpu workqueues tend to be more power hungry than unbound
370cee22a15SViresh Kumar	  workqueues.
371cee22a15SViresh Kumar
372cee22a15SViresh Kumar	  Enabling workqueue.power_efficient kernel parameter makes the
373cee22a15SViresh Kumar	  per-cpu workqueues which were observed to contribute
374cee22a15SViresh Kumar	  significantly to power consumption unbound, leading to measurably
375cee22a15SViresh Kumar	  lower power usage at the cost of small performance overhead.
376cee22a15SViresh Kumar
377cee22a15SViresh Kumar	  This config option determines whether workqueue.power_efficient
378cee22a15SViresh Kumar	  is enabled by default.
379cee22a15SViresh Kumar
380cee22a15SViresh Kumar	  If in doubt, say N.
381cee22a15SViresh Kumar
38277f827deSRafael J. Wysockiconfig PM_GENERIC_DOMAINS_SLEEP
38377f827deSRafael J. Wysocki	def_bool y
38477f827deSRafael J. Wysocki	depends on PM_SLEEP && PM_GENERIC_DOMAINS
38577f827deSRafael J. Wysocki
386aa42240aSTomasz Figaconfig PM_GENERIC_DOMAINS_OF
387aa42240aSTomasz Figa	def_bool y
388a4a8c2c4STomasz Figa	depends on PM_GENERIC_DOMAINS && OF
389aa42240aSTomasz Figa
390ab10023eSColin Crossconfig CPU_PM
391ab10023eSColin Cross	bool
39227871f7aSQuentin Perret
39327871f7aSQuentin Perretconfig ENERGY_MODEL
3943af2f0aaSLukasz Luba	bool "Energy Model for devices with DVFS (CPUs, GPUs, etc)"
39517f08280SJeson Gao	depends on CPU_FREQ || PM_DEVFREQ
39627871f7aSQuentin Perret	help
39727871f7aSQuentin Perret	  Several subsystems (thermal and/or the task scheduler for example)
3983af2f0aaSLukasz Luba	  can leverage information about the energy consumed by devices to
3993af2f0aaSLukasz Luba	  make smarter decisions. This config option enables the framework
4003af2f0aaSLukasz Luba	  from which subsystems can access the energy models.
40127871f7aSQuentin Perret
40227871f7aSQuentin Perret	  The exact usage of the energy model is subsystem-dependent.
40327871f7aSQuentin Perret
40427871f7aSQuentin Perret	  If in doubt, say N.
405