提交 af02b5fd 编写于 作者: G Geert Uytterhoeven 提交者: Rafael J. Wysocki

PM: Add missing "freeze" state

Fix descriptions of /sys/power/state in the documentation and in
a code comment.
Signed-off-by: NGeert Uytterhoeven <geert+renesas@linux-m68k.org>
Reviewed-by: NSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Acked-by: NPavel Machek <pavel@ucw.cz>
[rjw: Changelog]
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 4d434820
...@@ -12,8 +12,9 @@ Contact: Rafael J. Wysocki <rjw@rjwysocki.net> ...@@ -12,8 +12,9 @@ Contact: Rafael J. Wysocki <rjw@rjwysocki.net>
Description: Description:
The /sys/power/state file controls the system power state. The /sys/power/state file controls the system power state.
Reading from this file returns what states are supported, Reading from this file returns what states are supported,
which is hard-coded to 'standby' (Power-On Suspend), 'mem' which is hard-coded to 'freeze' (Low-Power Idle), 'standby'
(Suspend-to-RAM), and 'disk' (Suspend-to-Disk). (Power-On Suspend), 'mem' (Suspend-to-RAM), and 'disk'
(Suspend-to-Disk).
Writing to this file one of these strings causes the system to Writing to this file one of these strings causes the system to
transition into that state. Please see the file transition into that state. Please see the file
......
...@@ -282,8 +282,8 @@ struct kobject *power_kobj; ...@@ -282,8 +282,8 @@ struct kobject *power_kobj;
* state - control system power state. * state - control system power state.
* *
* show() returns what states are supported, which is hard-coded to * show() returns what states are supported, which is hard-coded to
* 'standby' (Power-On Suspend), 'mem' (Suspend-to-RAM), and * 'freeze' (Low-Power Idle), 'standby' (Power-On Suspend),
* 'disk' (Suspend-to-Disk). * 'mem' (Suspend-to-RAM), and 'disk' (Suspend-to-Disk).
* *
* store() accepts one of those strings, translates it into the * store() accepts one of those strings, translates it into the
* proper enumerated value, and initiates a suspend transition. * proper enumerated value, and initiates a suspend transition.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册