OSDN Git Service

arm: Add option to skip buffer zeroing
authorLaura Abbott <lauraa@codeaurora.org>
Thu, 22 May 2014 21:38:48 +0000 (14:38 -0700)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:14:08 +0000 (11:14 -0700)
commit0bf6f5ab1502115fcc3353ad1892c1c0cf148dd9
tree06157e4123104fa15c78b94fd7dd8fec4587828c
parentf01c05b16928c265d03173db6c2ce6b5349d335a
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: Ib78a19cb341c3c441f91d5b004c6375c80c10413
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
[pdaly@codeaurora.org Resolve minor conflicts]
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
arch/arm/mm/dma-mapping.c