summaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@suse.de>2010-01-25 11:42:23 -0600
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2010-02-05 12:32:34 -0600
commitc9334f6067dbe0380141fc75b122e0a533878838 (patch)
treec2078b06692665a51c5997233c646ade2581d163 /arch/sh
parent252a9afff76097667429b583e8b5b170b47665a4 (diff)
downloadblackbird-obmc-linux-c9334f6067dbe0380141fc75b122e0a533878838.tar.gz
blackbird-obmc-linux-c9334f6067dbe0380141fc75b122e0a533878838.zip
sh: add mm API for DMA to vmalloc/vmap areas
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/include/asm/cacheflush.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sh/include/asm/cacheflush.h b/arch/sh/include/asm/cacheflush.h
index dda96eb3e7c0..da3ebec921a7 100644
--- a/arch/sh/include/asm/cacheflush.h
+++ b/arch/sh/include/asm/cacheflush.h
@@ -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)
OpenPOWER on IntegriCloud