]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/x86/include/asm/dma-mapping.h
dma-mapping: unify dma_get_cache_alignment implementations
[net-next-2.6.git] / arch / x86 / include / asm / dma-mapping.h
index ac91eed21061a5299bc39669f6e333d2b61ef4b3..f9c67e83f6488844902132f7ca7dffcb3cb08489 100644 (file)
@@ -87,13 +87,6 @@ dma_cache_sync(struct device *dev, void *vaddr, size_t size,
        flush_write_buffers();
 }
 
-static inline int dma_get_cache_alignment(void)
-{
-       /* no easy way to get cache size on all x86, so return the
-        * maximum possible, to be safe */
-       return boot_cpu_data.x86_clflush_size;
-}
-
 static inline unsigned long dma_alloc_coherent_mask(struct device *dev,
                                                    gfp_t gfp)
 {