Skip to content
Commit deace4a6 authored by Russell King's avatar Russell King
Browse files

ARM: dma-mapping: avoid calling dma_cache_maint_page() on dev=>cpu



Avoid calling dma_cache_maint_page() when unmapping a DMA_TO_DEVICE
buffer.  The L1 cache ops never do anything in this circumstance, nor
do they ever need to - all that matters for this case is that the data
written is visible to the device before DMA starts.  What happens during
the transfer (provided the buffer is not written to) is of no real
consequence.

We already do this optimisation for the L2 cache.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 86f40622
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