lkml.org 
[lkml]   [2007]   [Mar]   [21]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 21 Mar 2007 09:31:46 +0100
FromPavel Machek <>
SubjectRe: [PATCH] swsusp: Fix SNAPSHOT_S2RAM ioctl
Hi!

> > From: Rafael J. Wysocki <rjw@sisk.pl>
> > 
> > The SNAPSHOT_S2RAM ioctl does not disable the nonboot CPUs before entering
> > the suspend, although it should do this.
> > 
> > --- linux-2.6.21-rc4.orig/kernel/power/user.c
> > +++ linux-2.6.21-rc4/kernel/power/user.c
> > @@ -374,9 +374,12 @@ static int snapshot_ioctl(struct inode *
> >  		if (error) {
> >  			printk(KERN_ERR "Failed to suspend some devices.\n");
> >  		} else {
> > -			/* Enter S3, system is already frozen */
> > -			suspend_enter(PM_SUSPEND_MEM);
> > -
> > +			error = disable_nonboot_cpus();
> > +			if (!error) {
> > +				/* Enter S3, system is already frozen */
> > +				suspend_enter(PM_SUSPEND_MEM);
> > +				enable_nonboot_cpus();
> > +			}
> >  			/* Wake up devices */
> >  			device_resume();
> >  		}
> 
> Do you consider this appropriate to 2.6.21?

Yes, this one is.
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-03-21 09:35    [from the cache]
©2003-2008