Re: [Suspend-devel] use pm_ops-{prepare, enter, finish} aka platform mode in userspace

2006-09-26 Thread Stefan Seyfried
On Tue, Sep 26, 2006 at 02:09:32PM +0200, Rafael J. Wysocki wrote: Looks good. Thanks, committed. -- Stefan Seyfried \ I didn't want to write for pay. I QA / RD Team Mobile Devices \ wanted to be paid for what I write. SUSE LINUX Products GmbH, Nürnberg \

[Suspend-devel] use pm_ops-{prepare, enter, finish} aka platform mode in userspace

2006-09-25 Thread Stefan Seyfried
Hi, following the submission of the kernel patch, here is my try at an implementation in userspace: Note that we could get rid of that platform_mode variable if we had the possibility to specify defaults in the struct config_par (without resorting to platform_mode i would have had multiple

Re: [Suspend-devel] use pm_ops-{prepare, enter, finish} aka platform mode in userspace

2006-09-25 Thread Pavel Machek
Hi! Note that we could get rid of that platform_mode variable if we had the possibility to specify defaults in the struct config_par (without resorting to platform_mode i would have had multiple incarnations of if (strcmp(shutdown_method, reboot) || strcmp(shutdown_method,