On Feb 12, 2008 2:48 PM, Zik Saleeba <[EMAIL PROTECTED]> wrote:
>
> pump_transfers() is called from pump_messages() and a few
> other places, all of which run in a workqueue. So it's not called from
> interrupt context but from a workqueue.

I just had a closer look at this and it's not true in all cases. It
can also be invoked from dma_transfer_complete() which  is reached in
interrupt context. This is probably the case which is improving my
performance so much.

So my change is bad in that it increases the maximum interrupt
latency. It's also the only way I know to get decent SPI utilisation
when you're doing large numbers of small transfers (as I am).

Is there a better way of doing this?

Cheers,
Zik

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to