summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLaura Abbott <lauraa@codeaurora.org>2014-08-05 19:39:38 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:04:00 -0700
commit67097c72247a4ed0ee8d48c849edfeee2624cbea (patch)
treef7e08663359ed3f30d2264b66df09d5861f84a1d /include/linux
parent793d80f988e2ce1d430f72fae066df9446316d60 (diff)
arm: Add option to skip buffer zeroing
The DMA framework currently zeros all buffers because it (righfully so) assumes that drivers will soon need to pass the memory to a device. Some devices/use case may not require zeroed memory and there can be an increase in performance if we skip the zeroing. Add a DMA_ATTR to allow skipping of DMA zeroing. Change-Id: Id9ccab355554b3163d8e7eae1caa82460e171e34 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> [mitchelh: dropped changes to arm32] Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/dma-attrs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dma-attrs.h b/include/linux/dma-attrs.h
index 29bd0a909bc8..eb1b9d727f39 100644
--- a/include/linux/dma-attrs.h
+++ b/include/linux/dma-attrs.h
@@ -19,6 +19,7 @@ enum dma_attr {
DMA_ATTR_SKIP_CPU_SYNC,
DMA_ATTR_FORCE_CONTIGUOUS,
DMA_ATTR_STRONGLY_ORDERED,
+ DMA_ATTR_SKIP_ZEROING,
DMA_ATTR_MAX,
};