Skip to contentSkip to conversation

PM: Add missing "freeze" state

PATCH In review Geert Uytterhoeven 4 participants 5 messages Mar 11, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 205a73878441..64c9276e9421 100644
@@ -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
index 1d1bf630e6e9..6271bc4073ef 100644
@@ -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
Reviewed-by on v2 1/1
#1 lore raw
Quoted 3 lines · Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

Regards,
Srivatsa S. Bhat

Quoted 41 lines

---
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
index 205a73878441..64c9276e9421 100644
@@ -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
index 1d1bf630e6e9..6271bc4073ef 100644
@@ -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.
#3 lore raw

Hi Pavel,

Quoted 6 lines · Pavel Machek
Quoted 3 lines · Geert Uytterhoeven

From: Geert Uytterhoeven <[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

#4 lore raw
Quoted 8 lines · Geert Uytterhoeven

Hi Pavel,

Quoted 5 lines · Pavel Machek
Quoted 3 lines · Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

Quoted 7 lines
Quoted 1 line

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.