Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend and hibernation callbacks

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Stern
Date: Tuesday, March 18, 2008 - 7:44 pm

On Wed, 19 Mar 2008, Rafael J. Wysocki wrote:


In order to make this work, you would have to prevent new children from
being registered starting from the time just after prepare() returns,
rather than from the time just before suspend() is called.  Nothing is
wrong with that, but it requires a redesign of the new flags.  (It's 
worth mentioning that drivers will want to have a flag that gets set 
just _before_ prepare() -- just _after_ is too late.)

In the other direction, it ought to be okay to allow new children to 
be registered during resume().  There's no need to wait for complete().


I agree.  For example, there isn't much point in having prepare() and
complete() entries for noirq.


Alan Stern

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH 0/3] PM: Rework suspend and hibernation code f ..., Rafael J. Wysocki, (Sun Mar 16, 4:20 pm)
[RFC][PATCH 1/3] PM: Introduce new top level suspend and h ..., Rafael J. Wysocki, (Sun Mar 16, 4:22 pm)
[RFC][PATCH 2/3] PM: New suspend and hibernation callbacks ..., Rafael J. Wysocki, (Sun Mar 16, 4:24 pm)
[RFC][PATCH 3/3] PM: New suspend and hibernation callbacks ..., Rafael J. Wysocki, (Sun Mar 16, 4:25 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend a ..., Rafael J. Wysocki, (Tue Mar 18, 6:04 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend a ..., Alan Stern, (Tue Mar 18, 7:44 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend a ..., Benjamin Herrenschmidt, (Tue Mar 18, 8:49 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend a ..., Rafael J. Wysocki, (Wed Mar 19, 6:22 am)
Re: [RFC][PATCH 3/3] PM: New suspend and hibernation callb ..., Rafael J. Wysocki, (Wed Mar 19, 6:24 am)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend a ..., Benjamin Herrenschmidt, (Wed Mar 19, 8:33 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend a ..., Benjamin Herrenschmidt, (Thu Mar 20, 3:32 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend a ..., Benjamin Herrenschmidt, (Thu Mar 20, 3:34 pm)