On Wed, 2009-09-02 at 08:47 -0700, David Brownell wrote:
> On Tuesday 01 September 2009, Andrew Morton wrote:
> > > +#define busy_wait(cond)
> > > \
> > > + ({ \
> > > + unsigned long end_jiffies = jiffies + STMP_SPI_TIMEOUT; \
> > > + bool succeeded = false; \
> > > + do { \
> > > + if (cond) { \
> > > + succeeded = true; \
> > > + break; \
> > > + } \
> > > + cpu_relax(); \
> > > + } while (time_before(end_jiffies, jiffies)); \
> > > + succeeded; \
> > > + })
> >
> > Oh dear.
>
> Bothered me a bit too, but ... compared to <linux/wait.h> and
> all the wait_event_*() macros, I couldn't object much. :)
Yes, you've found the root of this ugly stuff :)
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general