]> err.no Git - linux-2.6/commitdiff
x86: move dma_cache_sync to common header
authorGlauber Costa <gcosta@redhat.com>
Tue, 25 Mar 2008 21:36:33 +0000 (18:36 -0300)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:19:56 +0000 (19:19 +0200)
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>
include/asm-x86/dma-mapping.h
include/asm-x86/dma-mapping_32.h
include/asm-x86/dma-mapping_64.h

index b331a8d3a7cf01a40aad2b4fca7e6997494f8a2f..51a79d71dabd2056dc7ade644c086cd173ef6dfa 100644 (file)
@@ -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
index c61ae7ff222c55ca788818638c6e76176d5cc1ad..e60c30a88311d27a1128ebc64dc23ce63ae3a94a 100644 (file)
@@ -55,13 +55,6 @@ dma_get_cache_alignment(void)
 
 #define dma_is_consistent(d, h)        (1)
 
-static inline void
-dma_cache_sync(struct device *dev, void *vaddr, size_t size,
-              enum dma_data_direction direction)
-{
-       flush_write_buffers();
-}
-
 #define ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY
 extern int
 dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr,
index 2b4a43080db99bebe6d5dfb769427c22b94f2b32..b1bc6ca7613dac0beb2be1f1bf982e44863e5c29 100644 (file)
@@ -24,13 +24,6 @@ static inline int dma_get_cache_alignment(void)
 
 extern int dma_set_mask(struct device *dev, u64 mask);
 
-static inline void
-dma_cache_sync(struct device *dev, void *vaddr, size_t size,
-       enum dma_data_direction dir)
-{
-       flush_write_buffers();
-}
-
 extern struct device fallback_dev;
 extern int panic_on_overflow;