Re: [RFC] A New Power Management API

Adam Belay
2005-04-15T18:20:25Z

[-- Attachment #1: Type: text/plain, Size: 917 bytes --]

On Fri, 2005-04-15 at 09:16 -0400, Daniel Petrini wrote:
> Hi,
>
> Suggestion: as discussed in early weeks, why don't adopt names taking
> into consideration that Linux can run in systems other than desktops
> and servers?
>
> #define PM_SYSTEM_STATE_SUSPEND_RAM 0x00000010
> #define PM_SYSTEM_STATE_SUSPEND_DISK 0x00000020
>
> PM_SYSTEM_STATE_SUSPEND_DISK an be something like
> PM_SYSTEM_STATE_DEEP_SUSPEND and so on...
>
> So you can have better acceptance of people working in other areas.
>
> My two cents.
> Regards,
>
> Daniel Petrini

My idea here was to provide some optional flags that describe
characteristics of a given system-specific state. They may need to be
revised, but the intention was to provide meaningful information to
drivers without architecture specific code. Architecture-specific
drivers will likely ignore these and pay more attention to the state
number.

Thanks,
Adam