Re: [PATCH] [RFC] dmtimer library is very inefficient today

Tony Lindgren
2008-03-20T08:59:05Z

* Ladislav Michl <ladis@linux-mips.org> [080319 22:32]:
> On Tue, Mar 18, 2008 at 11:33:40AM -0700, Kevin Hilman wrote:
> > and upstream folks tend dislike the polling loops like this:
> >
> > while(condition);
> >
> > and prefer the semicolon on its own line to be clear that the loop is
> > indeed doing nothing.
> >
> > while(condition)
> > ;
> >
>
> Once there, polling loops usually looks like this
>
> while (condition)
> cpu_relax();

Thanks, I'll add those to the while looops.

Tony