PM: Add missing "freeze" state
Subsystems (2)
PATCH v2 1/1 PM: Add missing "freeze" state
From: Geert Uytterhoeven <[email protected]>
---
v2:
- Update comments for state_show() as suggested by Srivatsa S. Bhat <[email protected]>
Documentation/ABI/testing/sysfs-power | 5 +++-- kernel/power/main.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-)
Documentation/ABI/testing/sysfs-power +3 -2
@@ -12,8 +12,9 @@ Contact: Rafael J. Wysocki <[email protected]> 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
kernel/power/main.c +2 -2
@@ -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.
Signature · 1 line
1.7.9.5
Quoted 3 lines · Geert Uytterhoeven
From: Geert Uytterhoeven <[email protected]>
Signed-off-by Geert Uytterhoeven <[email protected]>
Regards,
Srivatsa S. Bhat
Quoted 41 lines
---
v2:
- Update comments forstate_show()as suggested by Srivatsa S. Bhat <[email protected]>Documentation/ABI/testing/sysfs-power | 5 +++-- kernel/power/main.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-)Documentation/ABI/testing/sysfs-power +3
-2@@ -12,8 +12,9 @@ Contact: Rafael J. Wysocki <[email protected]> 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 filekernel/power/main.c +2
-2@@ -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.
Quoted 3 lines · Geert Uytterhoeven
From: Geert Uytterhoeven <[email protected]>
Signed-off-by Geert Uytterhoeven <[email protected]>
Is it going to go in through the trivial tree?
Thanks,
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Hi Pavel,
Quoted 6 lines · Pavel Machek
Quoted 3 lines · Geert Uytterhoeven
From: Geert Uytterhoeven <[email protected]>
Signed-off-by Geert Uytterhoeven <[email protected]>Acked-by Pavel Machek <[email protected]>
Thanks!
Quoted 1 line
Is it going to go in through the trivial tree?
I didn't send this to trivial, so please take it through the PM tree.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 8 lines · Geert Uytterhoeven
Hi Pavel,
Quoted 5 lines · Pavel Machek
Quoted 3 lines · Geert Uytterhoeven
From: Geert Uytterhoeven <[email protected]>
Signed-off-by Geert Uytterhoeven <[email protected]>
Quoted 7 lines
Quoted 1 line
Acked-by Pavel Machek <[email protected]>Thanks!
Quoted 1 line
Is it going to go in through the trivial tree?
I didn't send this to trivial, so please take it through the PM tree.
Queued up for 3.15 along with the other two commens cleanups in the runtime PM and hibernation code. Thanks!
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.