Re: [PATCH 1/3] PM: Introduce new top level suspend and hibernation callbacks (rev. 8)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rafael J. Wysocki
Date: Sunday, April 13, 2008 - 4:08 pm

On Monday, 14 of April 2008, Benjamin Herrenschmidt wrote:

Okay, so we have different opinions. :-)
 

From my point of view, they are as right as they can be at the moment.

Besides, maintainig a set of patches like this so that it always applies to
a tree that's continuously changing under it is far from funny.  I'm not going
to do it much longer, that's for sure.


Well, if we put ->prepare() before the freezer, what can it actually do?
Certainly nothing that will block any (user space) task, because the freezer
won't work after that.  So, all of the significant suspend work, like blocking
tasks using the device etc., will have to be done by ->suspend().  Will that be
convenient?  I'm not sure.  I'm not even sure that would be _doable_ at all.

The point of view depends on what you think ->prepare() should be used for
and I'm sure you have some specific cases in mind.  However, are they generic
enough?

Thanks,
Rafael
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] PM: New suspend and hibernation callbacks, Rafael J. Wysocki, (Thu Apr 3, 4:11 pm)
[PATCH 2/3] PM: New suspend and hibernation callbacks for ..., Rafael J. Wysocki, (Thu Apr 3, 4:13 pm)
[PATCH 3/3] PM: New suspend and hibernation callbacks for ..., Rafael J. Wysocki, (Thu Apr 3, 4:15 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Rafael J. Wysocki, (Sun Apr 13, 6:31 am)
[PATCH 1/3] PM: Introduce new top level suspend and hibern ..., Rafael J. Wysocki, (Sun Apr 13, 6:33 am)
[PATCH 2/3] PM: New suspend and hibernation callbacks for ..., Rafael J. Wysocki, (Sun Apr 13, 6:33 am)
[PATCH 3/3] PM: New suspend and hibernation callbacks for ..., Rafael J. Wysocki, (Sun Apr 13, 6:34 am)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Benjamin Herrenschmidt, (Sun Apr 13, 2:05 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Rafael J. Wysocki, (Sun Apr 13, 2:39 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Benjamin Herrenschmidt, (Sun Apr 13, 3:10 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Rafael J. Wysocki, (Sun Apr 13, 3:27 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Benjamin Herrenschmidt, (Sun Apr 13, 3:47 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Rafael J. Wysocki, (Sun Apr 13, 4:08 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Rafael J. Wysocki, (Sun Apr 13, 4:17 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Rafael J. Wysocki, (Sun Apr 13, 4:33 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Benjamin Herrenschmidt, (Sun Apr 13, 4:46 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Benjamin Herrenschmidt, (Sun Apr 13, 4:48 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Benjamin Herrenschmidt, (Sun Apr 13, 4:49 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Rafael J. Wysocki, (Sun Apr 13, 5:07 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Rafael J. Wysocki, (Sun Apr 13, 5:31 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Benjamin Herrenschmidt, (Sun Apr 13, 5:40 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Benjamin Herrenschmidt, (Sun Apr 13, 5:43 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Benjamin Herrenschmidt, (Sun Apr 13, 5:46 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Rafael J. Wysocki, (Sun Apr 13, 5:50 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Rafael J. Wysocki, (Sun Apr 13, 5:59 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Rafael J. Wysocki, (Sun Apr 13, 6:09 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Benjamin Herrenschmidt, (Sun Apr 13, 8:23 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Benjamin Herrenschmidt, (Mon Apr 14, 12:23 am)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Benjamin Herrenschmidt, (Mon Apr 14, 12:50 am)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Rafael J. Wysocki, (Mon Apr 14, 5:11 am)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Rafael J. Wysocki, (Mon Apr 14, 5:25 am)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Rafael J. Wysocki, (Mon Apr 14, 5:34 am)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Benjamin Herrenschmidt, (Mon Apr 14, 1:45 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Benjamin Herrenschmidt, (Mon Apr 14, 1:47 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Benjamin Herrenschmidt, (Mon Apr 14, 1:48 pm)
Re: [PATCH 1/3] PM: Introduce new top level suspend and hi ..., Rafael J. Wysocki, (Mon Apr 14, 1:56 pm)
Re: PM: New suspend and hibernation callbacks for PCI bus type, Rafael J. Wysocki, (Wed Apr 30, 5:09 am)