ia64: make dma_cache_sync a no-op
authorChristoph Hellwig <hch@lst.de>
Sun, 27 Aug 2017 08:07:04 +0000 (10:07 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 19 Oct 2017 14:37:22 +0000 (16:37 +0200)
ia64 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/ia64/include/asm/dma-mapping.h

index 3ce5ab4339f310460a94db3565fd490c874e3f8b..99dfc1aa9d3ce2c27b8168ae862daaa0e23d3182 100644 (file)
@@ -48,11 +48,6 @@ static inline void
 dma_cache_sync (struct device *dev, void *vaddr, size_t size,
        enum dma_data_direction dir)
 {
-       /*
-        * IA-64 is cache-coherent, so this is mostly a no-op.  However, we do need to
-        * ensure that dma_cache_sync() enforces order, hence the mb().
-        */
-       mb();
 }
 
 #endif /* _ASM_IA64_DMA_MAPPING_H */