* [PATCH v2] PM: Add missing "freeze" state
@ 2014-03-11 11:08 Geert Uytterhoeven
2014-03-11 11:11 ` Srivatsa S. Bhat
2014-03-11 12:40 ` Pavel Machek
0 siblings, 2 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2014-03-11 11:08 UTC (permalink / raw)
To: Pavel Machek, Rafael J. Wysocki
Cc: Srivatsa S. Bhat, linux-pm, linux-kernel, Geert Uytterhoeven
From: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
---
v2:
- Update comments for state_show() as suggested by Srivatsa S. Bhat
<srivatsa.bhat@linux.vnet.ibm.com>
Documentation/ABI/testing/sysfs-power | 5 +++--
kernel/power/main.c | 4 ++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/Documentation/ABI/testing/sysfs-power b/Documentation/ABI/testing/sysfs-power
index 205a73878441..64c9276e9421 100644
--- a/Documentation/ABI/testing/sysfs-power
+++ b/Documentation/ABI/testing/sysfs-power
@@ -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
diff --git a/kernel/power/main.c b/kernel/power/main.c
index 1d1bf630e6e9..6271bc4073ef 100644
--- a/kernel/power/main.c
+++ b/kernel/power/main.c
@@ -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.
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH v2] PM: Add missing "freeze" state
2014-03-11 11:08 [PATCH v2] PM: Add missing "freeze" state Geert Uytterhoeven
@ 2014-03-11 11:11 ` Srivatsa S. Bhat
2014-03-11 12:40 ` Pavel Machek
1 sibling, 0 replies; 5+ messages in thread
From: Srivatsa S. Bhat @ 2014-03-11 11:11 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Pavel Machek, Rafael J. Wysocki, linux-pm, linux-kernel,
Geert Uytterhoeven
On 03/11/2014 04:38 PM, Geert Uytterhoeven wrote:
> From: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Regards,
Srivatsa S. Bhat
> ---
> v2:
> - Update comments for state_show() as suggested by Srivatsa S. Bhat
> <srivatsa.bhat@linux.vnet.ibm.com>
>
> Documentation/ABI/testing/sysfs-power | 5 +++--
> kernel/power/main.c | 4 ++--
> 2 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/ABI/testing/sysfs-power b/Documentation/ABI/testing/sysfs-power
> index 205a73878441..64c9276e9421 100644
> --- a/Documentation/ABI/testing/sysfs-power
> +++ b/Documentation/ABI/testing/sysfs-power
> @@ -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
> diff --git a/kernel/power/main.c b/kernel/power/main.c
> index 1d1bf630e6e9..6271bc4073ef 100644
> --- a/kernel/power/main.c
> +++ b/kernel/power/main.c
> @@ -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.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] PM: Add missing "freeze" state
2014-03-11 11:08 [PATCH v2] PM: Add missing "freeze" state Geert Uytterhoeven
2014-03-11 11:11 ` Srivatsa S. Bhat
@ 2014-03-11 12:40 ` Pavel Machek
2014-03-11 13:13 ` Geert Uytterhoeven
1 sibling, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2014-03-11 12:40 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Rafael J. Wysocki, Srivatsa S. Bhat, linux-pm, linux-kernel,
Geert Uytterhoeven
On Tue 2014-03-11 12:08:11, Geert Uytterhoeven wrote:
> From: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Is it going to go in through the trivial tree?
Thanks,
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] PM: Add missing "freeze" state
2014-03-11 12:40 ` Pavel Machek
@ 2014-03-11 13:13 ` Geert Uytterhoeven
2014-03-12 0:13 ` Rafael J. Wysocki
0 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2014-03-11 13:13 UTC (permalink / raw)
To: Pavel Machek
Cc: Rafael J. Wysocki, Srivatsa S. Bhat, Linux PM list,
linux-kernel@vger.kernel.org, Geert Uytterhoeven
Hi Pavel,
On Tue, Mar 11, 2014 at 1:40 PM, Pavel Machek <pavel@ucw.cz> wrote:
> On Tue 2014-03-11 12:08:11, Geert Uytterhoeven wrote:
>> From: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
>>
>> Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
>
> Acked-by: Pavel Machek <pavel@ucw.cz>
Thanks!
> 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 -- geert@linux-m68k.org
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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH v2] PM: Add missing "freeze" state
2014-03-11 13:13 ` Geert Uytterhoeven
@ 2014-03-12 0:13 ` Rafael J. Wysocki
0 siblings, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2014-03-12 0:13 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Pavel Machek, Srivatsa S. Bhat, Linux PM list,
linux-kernel@vger.kernel.org, Geert Uytterhoeven
On Tuesday, March 11, 2014 02:13:59 PM Geert Uytterhoeven wrote:
> Hi Pavel,
>
> On Tue, Mar 11, 2014 at 1:40 PM, Pavel Machek <pavel@ucw.cz> wrote:
> > On Tue 2014-03-11 12:08:11, Geert Uytterhoeven wrote:
> >> From: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
> >>
> >> Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
> >
> > Acked-by: Pavel Machek <pavel@ucw.cz>
>
> Thanks!
>
> > 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!
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-03-11 23:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-11 11:08 [PATCH v2] PM: Add missing "freeze" state Geert Uytterhoeven
2014-03-11 11:11 ` Srivatsa S. Bhat
2014-03-11 12:40 ` Pavel Machek
2014-03-11 13:13 ` Geert Uytterhoeven
2014-03-12 0:13 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox