lkml.org 
[lkml]   [2009]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH 0/3] PM: Asynchronous suspend and resume
On Thu, 13 Aug 2009, Rafael J. Wysocki wrote:

> > If the set of pm_connection objects is reasonably small then the
> > master_hook and slave_hook aren't needed; you can just read through the
> > entire list. Leaving out parent-child connections, which we already
> > know, would help shrink the set.
>
> Do you mean a global list for the entire system? I'm not sure if that wouldn't
> hurt performance (please note that it also affects runtime PM).

It doesn't have to affect runtime PM. That is, for runtime PM we can
make the bus subsystems responsible for enforcing the dependencies.

> We could use counters of "suspended slaves" and "active masters" to optimize
> things, but still updating these counters could take time (one has to find all
> devices dependent on given one and update a counter for each of them).

The problem with counters is that devices can be removed in the middle
of a suspend or resume. That would mess up the counter values.

Alan Stern



\
 
 \ /
  Last update: 2009-08-13 20:41    [from the cache]
©2003-2011 Jasper Spaans