Re: [PATCH 07/13] PM: wakelock: Add /sys/power/request_state

Arve Hjønnevåg
2009-02-05T09:25:03Z

On Thu, Feb 5, 2009 at 12:52 AM, Pavel Machek <pavel@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