[linux-pm] [patch] pm: fix runtime powermanagement's /sys interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/27/05, Pavel Machek <pavel@xxxxxx> 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


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux