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

Ladislav Michl
2008-03-19T20:02:40Z

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();