summaryrefslogtreecommitdiffstats
path: root/drivers/dma/hsu/hsu.h
diff options
context:
space:
mode:
authorAndy Shevchenko2015-11-17 17:00:30 +0100
committerVinod Koul2015-12-05 09:30:34 +0100
commitf0579c8ceaf18adf1eca8b4404f9caac37208655 (patch)
tree9b8908cb2e7a97fa7409cc7dbf32a93ecc094a52 /drivers/dma/hsu/hsu.h
parentdmaengine: acpi-dma: check for 64-bit MMIO address (diff)
downloadkernel-qcow2-linux-f0579c8ceaf18adf1eca8b4404f9caac37208655.tar.gz
kernel-qcow2-linux-f0579c8ceaf18adf1eca8b4404f9caac37208655.tar.xz
kernel-qcow2-linux-f0579c8ceaf18adf1eca8b4404f9caac37208655.zip
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>
Diffstat (limited to 'drivers/dma/hsu/hsu.h')
-rw-r--r--drivers/dma/hsu/hsu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/hsu/hsu.h b/drivers/dma/hsu/hsu.h
index f06579c6d548..578a8ee8cd05 100644
--- a/drivers/dma/hsu/hsu.h
+++ b/drivers/dma/hsu/hsu.h
@@ -65,6 +65,7 @@ struct hsu_dma_desc {
enum dma_transfer_direction direction;
struct hsu_dma_sg *sg;
unsigned int nents;
+ size_t length;
unsigned int active;
enum dma_status status;
};