fsldma: reduce locking during descriptor cleanup
authorIra Snyder <iws@ovro.caltech.edu>
Thu, 3 Mar 2011 07:55:00 +0000 (07:55 +0000)
committerDan Williams <dan.j.williams@intel.com>
Sat, 12 Mar 2011 01:52:37 +0000 (17:52 -0800)
commitdc8d4091575ba81e886ebcdfd1e559c981f82f86
tree701c55d8e54d8f4c376a0af4ce10356875c86164
parent9c4d1e7bdeb1ed4dc0c3341d40662a6fbc5f2dc2
fsldma: reduce locking during descriptor cleanup

This merges the fsl_chan_ld_cleanup() function into the dma_do_tasklet()
function to reduce locking overhead. In the best case, we will be able
to keep the DMA controller busy while we are freeing used descriptors.
In all cases, the spinlock is grabbed two times fewer than before on
each transaction.

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/fsldma.c