]> git.karo-electronics.de Git - linux-beck.git/commit
dmaengine: hsu: speed up residue calculation
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 17 Nov 2015 16:00:30 +0000 (18:00 +0200)
committerVinod Koul <vinod.koul@intel.com>
Sat, 5 Dec 2015 08:30:34 +0000 (14:00 +0530)
commitf0579c8ceaf18adf1eca8b4404f9caac37208655
tree9b8908cb2e7a97fa7409cc7dbf32a93ecc094a52
parentf94cf9f4c54a72ccbd2078bb0cedd3691a71c431
dmaengine: hsu: speed up residue calculation

There is no need to calculate an overall length of the descriptor each time we
call for DMA transfer status. Instead we do this at descriptor allocation stage
and keep the stored length for further usage.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/hsu/hsu.c
drivers/dma/hsu/hsu.h