On Thu, Feb 5, 2009 at 12:52 AM, Pavel Machek <pavel@xxxxxx> 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 _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm