x86: move dma_cache_sync to common header
they are the same in both architectures. Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
committed by
Ingo Molnar
parent
2be621498d
commit
3cb6a91711
@ -185,4 +185,10 @@ static inline void dma_unmap_page(struct device *dev, dma_addr_t addr,
|
||||
dma_unmap_single(dev, addr, size, direction);
|
||||
}
|
||||
|
||||
static inline void
|
||||
dma_cache_sync(struct device *dev, void *vaddr, size_t size,
|
||||
enum dma_data_direction dir)
|
||||
{
|
||||
flush_write_buffers();
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user