lkml.org 
[lkml]   [2005]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateTue, 27 Dec 2005 16:55:18 -0500
FromDmitry Torokhov <>
SubjectRe: [linux-pm] [patch] pm: fix runtime powermanagement's /sys interface
On 12/27/05, Pavel Machek <pavel@ucw.cz> wrote:
>
> static ssize_t state_show(struct device * dev, struct device_attribute *attr, char * buf)
> {
> - return sprintf(buf, "%u\n", dev->power.power_state.event);
> + if (dev->power.power_state.event)
> + return sprintf(buf, "suspend\n");
> + else
> + return sprintf(buf, "on\n");
> }

Are you sure that having only 2 options (suspend/on) is enough at the
core level? I could envision having more levels, like "poweroff", etc?

--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-12-27 22:57    [from the cache]
©2003-2010