Hi!
> > > I think I can prepare the -mm patch.
> >
> > Thanks, i owe you one :-)
>
> Ah, no big deal, that was easy. ;-) Patch appended.
Can you add my ACK and send it to akpm? Or do you want me to do it?
Pavel
> Rafael
>
>
> kernel/power/user.c | 13 +++++++++++--
> 1 file changed, 11 insertions(+), 2 deletions(-)
>
> Index: linux-2.6.20-rc6-mm3/kernel/power/user.c
> ===================================================================
> --- linux-2.6.20-rc6-mm3.orig/kernel/power/user.c 2007-02-04
> 18:36:21.000000000 +0100
> +++ linux-2.6.20-rc6-mm3/kernel/power/user.c 2007-02-04 18:56:53.000000000
> +0100
> @@ -341,6 +341,11 @@ static int snapshot_ioctl(struct inode *
> break;
>
> case SNAPSHOT_S2RAM:
> + if (!pm_ops) {
> + error = -ENOSYS;
> + break;
> + }
> +
> if (!data->frozen) {
> error = -EPERM;
> break;
> @@ -383,8 +388,12 @@ static int snapshot_ioctl(struct inode *
> switch (arg) {
>
> case PMOPS_PREPARE:
> - data->platform_suspend = 1;
> - error = 0;
> + if (pm_ops && pm_ops->enter) {
> + data->platform_suspend = 1;
> + error = 0;
> + } else {
> + error = -ENOSYS;
> + }
> break;
>
> case PMOPS_ENTER:
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures)
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Suspend-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/suspend-devel