login
Header Space

 
 

[RFC][PATCH 0/3] PM: Rework suspend and hibernation code for devices

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: pm list <linux-pm@...>
Cc: ACPI Devel Maling List <linux-acpi@...>, Alan Stern <stern@...>, Greg KH <greg@...>, Len Brown <lenb@...>, LKML <linux-kernel@...>, Alexey Starikovskiy <astarikovskiy@...>, David Brownell <david-b@...>, Pavel Machek <pavel@...>
Date: Sunday, March 16, 2008 - 7:20 pm

Hi,

The following three patches are intended to start the redesign of the suspend
and hibernation framework for devices.

The first patch defines the new framework.  Specifically, it introduces the
structure 'struct pm_ops' containing a set of hibernation and suspend
callbacks to be defined by bus types, device types, device classes and,
finally, by device drivers (the role of each callback is described in the
comment in pm.h; the documentation will be updated later).  It also modifies
the code in drivers/base/power/main.c to use the new framework, if available,
and fall back to the old one otherwise (no visible functional changes should be
added).

The other two patches implement the new suspend and hibernation callbacks
for the platform and PCI bus types.

Please review and tell me what you think.

Thanks,
Rafael


-- 
"Premature optimization is the root of all evil." - Donald Knuth

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

Messages in current thread:
[RFC][PATCH 0/3] PM: Rework suspend and hibernation code for..., Rafael J. Wysocki, (Sun Mar 16, 7:20 pm)
[RFC][PATCH 3/3] PM: New suspend and hibernation callbacks f..., Rafael J. Wysocki, (Sun Mar 16, 7:25 pm)
Re: [RFC][PATCH 3/3] PM: New suspend and hibernation callbac..., Rafael J. Wysocki, (Wed Mar 19, 9:24 am)
[RFC][PATCH 2/3] PM: New suspend and hibernation callbacks f..., Rafael J. Wysocki, (Sun Mar 16, 7:24 pm)
[RFC][PATCH 1/3] PM: Introduce new top level suspend and hib..., Rafael J. Wysocki, (Sun Mar 16, 7:22 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend and..., Rafael J. Wysocki, (Wed Mar 19, 9:22 am)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend and..., Rafael J. Wysocki, (Tue Mar 18, 9:04 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend and..., Benjamin Herrenschmidt, (Tue Mar 18, 11:49 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend and..., Benjamin Herrenschmidt, (Wed Mar 19, 11:33 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend and..., Benjamin Herrenschmidt, (Thu Mar 20, 6:34 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend and..., Benjamin Herrenschmidt, (Thu Mar 20, 6:32 pm)
speck-geostationary