lkml.org 
[lkml]   [2009]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [linux-pm] [PATCH] resume: wait for device probing to finish
On Thu, 15 Jan 2009 12:34:36 +1100
Nigel Cunningham <ncunningham@crca.org.au> wrote:

> Hi Rafael etc.
>
> On Thu, 2009-01-15 at 00:39 +0100, Rafael J. Wysocki wrote:
>
> [...]
>
> > /**
> > + * wait_for_device_probe
> > + * Wait for device probing to be completed.
> > + *
> > + * Note: this function polls at 100 msec intervals.
> > + */
> > +int wait_for_device_probe(void)
> > +{
> > + /* wait for the known devices to complete their probing */
> > + while (driver_probe_done() != 0)
> > + msleep(100);
> > + async_synchronize_full();
> > + return 0;
> > +}
> > +
>
> Am I missing something? I can't see why you're polling instead of
> using probe_waitqueue.

I'm just consolidating the existing code to one place.



\
 
 \ /
  Last update: 2009-01-15 10:25    [W:0.056 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site