login
Header Space

 
 

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

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

On Monday, 24 of March 2008, Alan Stern wrote:

Hmm.  dev->power.status is protected by dpm_list_mtx.  Do you think it would be
useful to have an accessor function for reading it under the lock?


OK


The WARN_ON() below 'Refuse' will trigger.  I think that's sufficient.


OK
 

Ah, I overlooked that.  Will fix.


The device can't be removed at this point, because we hold dpm_list_mtx, which
is needed by device_del().  Still, I'll move the put_device() to avoid
confusion (as well as in all of the other places).


dpm_list may be empty at this point.  Wouldn't that cause any trouble?


Okay, thanks for the comments.

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

Messages in current thread:
[RFC][PATCH] PM: Introduce new top level suspend and hiberna..., Rafael J. Wysocki, (Mon Mar 24, 1:39 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and hib..., Rafael J. Wysocki, (Mon Mar 24, 6:18 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and hib..., Rafael J. Wysocki, (Tue Mar 25, 4:39 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and hib..., Rafael J. Wysocki, (Tue Mar 25, 8:40 am)
Re: [RFC][PATCH] PM: Introduce new top level suspend and hib..., Rafael J. Wysocki, (Mon Mar 24, 5:18 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and hib..., Rafael J. Wysocki, (Tue Mar 25, 4:35 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and hib..., Rafael J. Wysocki, (Wed Mar 26, 4:26 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and hib..., Rafael J. Wysocki, (Wed Mar 26, 4:54 pm)
speck-geostationary