Re: [PATCH -mm] swsusp: Freeze filesystems during suspend (rev. 2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday, 1 November 2006 20:45, Andrew Morton wrote:
> On Wed, 1 Nov 2006 18:53:07 +0100
> "Rafael J. Wysocki" <[email protected]> wrote:
> 
> > +void thaw_processes(void)
> > +{
> > +	printk("Restarting tasks ... ");
> > +	__thaw_tasks(FREEZER_KERNEL_THREADS);
> > +	thaw_filesystems();
> > +	__thaw_tasks(FREEZER_USER_SPACE);
> > +	schedule();
> > +	printk("done.\n");
> > +}
> >  
> > -	read_unlock(&tasklist_lock);
> > +void thaw_kernel_threads(void)
> > +{
> > +	printk("Restarting kernel threads ... ");
> > +	__thaw_tasks(FREEZER_KERNEL_THREADS);
> >  	schedule();
> >  	printk("done.\n");
> >  }
> 
> what do these random-looking schedule()s do??

My understanding is that they allow the thawed tasks to actually exit
the refrigerator, because __thaw_tasks() only changes their states.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux