lkml.org 
[lkml]   [2008]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC][PATCH] PM: Make PM core handle device registrations concurrent with suspend/hibernation
Date
On Thursday, 6 of March 2008, Alan Stern wrote:
> On Thu, 6 Mar 2008, Rafael J. Wysocki wrote:
>
> > > > Well, can it happen in practice? If it can, then what way can it happen?
> > >
> > > Yes, it can happen in practice when a new module is loaded. In some
> > > ways, modules' init routines are like probe methods.
> >
> > Hmm, I'm not sure if it really is possible to load a module when all devices
> > have been suspended. Never mind, though.
>
> You can load the module before devices are suspended, and then its init
> routine can run while the suspend is starting.

Yeah.

> > > To be safe, I think we should make system sleep mutually exclusive with
> > > module loading.
> >
> > Okay, is the (yet another) version of the patch below fine by you?
>
> Yes, it's fine. Mutual exclusion with module loading can be added
> later. (Ironically, it may require putting pm_sleep_rwsem back!)

I'm going to send this patch and the "include dpm_sysfs_add() into
device_pm_add()" patch for -mm/linux-next testing, if you don't mind.

I'm working on a new version of the "PM: Separate suspend and hibernation
callbacks" patch, on top of the two.

Thanks,
Rafael


\
 
 \ /
  Last update: 2008-03-06 23:35    [W:0.053 / U:0.764 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site