[linux-pm] [PATCH 07/13] PM: wakelock: Add /sys/power/request_state

Arve Hjønnevåg arve at android.com
Thu Feb 5 01:25:03 PST 2009


On Thu, Feb 5, 2009 at 12:52 AM, Pavel Machek <pavel at ucw.cz> wrote:
>>  static const char * const pm_states[PM_SUSPEND_MAX] = {
>> +#ifdef CONFIG_WAKELOCK
>> +     [PM_SUSPEND_ON]         = "on",
>> +#endif
>>       [PM_SUSPEND_STANDBY]    = "standby",
>>       [PM_SUSPEND_MEM]        = "mem",
>>  };
>
> By doing this you change /sys/power/state interface. I do not think
> you want to do that.

As long as valid_state(PM_SUSPEND_ON) returns 0, /sys/power/state
should be unaffected.
However, I can hardcode the "on" state in request_state if you prefer.

-- 
Arve Hjønnevåg


More information about the linux-pm mailing list