]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: make dma_cache_sync a no-op
authorChristoph Hellwig <hch@lst.de>
Sun, 27 Aug 2017 08:27:49 +0000 (10:27 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 19 Oct 2017 14:37:40 +0000 (16:37 +0200)
commite30b4523340c061ad70e62dbc10fd1105370398c
tree536fad8bfebbff728c3b21a8f1b6303d7105d92b
parent8e503143ac5eda924fe9b2b38273f0aafcf57229
xtensa: make dma_cache_sync a no-op

xtensa does not implement DMA_ATTR_NON_CONSISTENT allocations, so it
doesn't make any sense to do any work in dma_cache_sync given that it
must be a no-op when dma_alloc_attrs returns coherent memory.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
arch/xtensa/include/asm/dma-mapping.h
arch/xtensa/kernel/pci-dma.c