Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af02b5fd authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Rafael J. Wysocki
Browse files

PM: Add missing "freeze" state



Fix descriptions of /sys/power/state in the documentation and in
a code comment.

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@linux-m68k.org>
Reviewed-by: default avatarSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
[rjw: Changelog]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 4d434820
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -12,8 +12,9 @@ Contact: Rafael J. Wysocki <rjw@rjwysocki.net>
Description:
		The /sys/power/state file controls the system power state.
		Reading from this file returns what states are supported,
		which is hard-coded to 'standby' (Power-On Suspend), 'mem'
		(Suspend-to-RAM), and 'disk' (Suspend-to-Disk).
		which is hard-coded to 'freeze' (Low-Power Idle), 'standby'
		(Power-On Suspend), 'mem' (Suspend-to-RAM), and 'disk'
		(Suspend-to-Disk).

		Writing to this file one of these strings causes the system to
		transition into that state. Please see the file
+2 −2
Original line number Diff line number Diff line
@@ -282,8 +282,8 @@ struct kobject *power_kobj;
 *	state - control system power state.
 *
 *	show() returns what states are supported, which is hard-coded to
 *	'standby' (Power-On Suspend), 'mem' (Suspend-to-RAM), and
 *	'disk' (Suspend-to-Disk).
 *	'freeze' (Low-Power Idle), 'standby' (Power-On Suspend),
 *	'mem' (Suspend-to-RAM), and 'disk' (Suspend-to-Disk).
 *
 *	store() accepts one of those strings, translates it into the
 *	proper enumerated value, and initiates a suspend transition.