sh: add mm API for DMA to vmalloc/vmap areas
authorJames Bottomley <James.Bottomley@suse.de>
Mon, 25 Jan 2010 17:42:23 +0000 (11:42 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 5 Feb 2010 18:32:34 +0000 (12:32 -0600)
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
arch/sh/include/asm/cacheflush.h

index dda96eb3e7c06b31bb764915a4474bec649f9c2d..da3ebec921a70db7941f3bfac3f47261c759bc76 100644 (file)
@@ -63,6 +63,14 @@ static inline void flush_anon_page(struct vm_area_struct *vma,
        if (boot_cpu_data.dcache.n_aliases && PageAnon(page))
                __flush_anon_page(page, vmaddr);
 }
+static inline void flush_kernel_vmap_range(void *addr, int size)
+{
+       __flush_wback_region(addr, size);
+}
+static inline void invalidate_kernel_vmap_range(void *addr, int size)
+{
+       __flush_invalidate_region(addr, size);
+}
 
 #define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE
 static inline void flush_kernel_dcache_page(struct page *page)