]> git.baikalelectronics.ru Git - kernel.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)
commit10883222f2cd911304180b1809a58eb48b57cb4f
tree9b8908cb2e7a97fa7409cc7dbf32a93ecc094a52
parentaa675244204dcf2e2abd8164852c8436f5aeac37
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