2011/5/19 Vitaly Wool <[email protected]>:
> On Thu, May 19, 2011 at 7:36 PM, Linus Walleij <[email protected]> 
> wrote:
>>>
>>> just out of curiosity: is it a busy wait? Looks like it is...
>>
>> Yep that's the polling mode part. IRQ and DMA mode should
>> be the norm I guess.
>>
>> Magnus: do you have a specific use case for this thing?
>
> Well, adding cpu_relax() somewhere in the loop might be not a bad idea...

OK sent a patch for it, and Grant applied it within something like
30 seconds :-)

I think on ARM that just boils down to a barrier() so it
basically injects air in the pipeline when busywaiting, I never
understood what that is good for, but it's a good marker anyway.

Linus Walleij

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to