Commit e03742da authored by Laura Abbott's avatar Laura Abbott Committed by Nikola Majkić
Browse files

ion: Skip zeroing on secure buffers


Secure buffers are never passed to userspace and are controled
by the secure world so there is no real need to zero. Pass the
dma attribute to skip zeroing.

Change-Id: Iad870d0d7732d3dea09443418b9294cb9e05b5e0
Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
parent 1ea28bfb
......@@ -136,6 +136,7 @@ static int ion_secure_cma_add_to_pool(
}
dma_set_attr(DMA_ATTR_NO_KERNEL_MAPPING, &attrs);
dma_set_attr(DMA_ATTR_SKIP_ZEROING, &attrs);
cpu_addr = dma_alloc_attrs(sheap->dev, len, &handle, GFP_KERNEL,
&attrs);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment