]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - arch/arm/include/asm/cacheflush.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/xfs-vipt
[linux-2.6.git] / arch / arm / include / asm / cacheflush.h
index 8113bb5fb66eb6f92378ad43ce0d2607fda3b08c..5fe4a2ad7fa34deb2e7be770fdfa782359f6d245 100644 (file)
@@ -447,6 +447,16 @@ static inline void __flush_icache_all(void)
            : "r" (0));
 #endif
 }
+static inline void flush_kernel_vmap_range(void *addr, int size)
+{
+       if ((cache_is_vivt() || cache_is_vipt_aliasing()))
+         __cpuc_flush_dcache_area(addr, (size_t)size);
+}
+static inline void invalidate_kernel_vmap_range(void *addr, int size)
+{
+       if ((cache_is_vivt() || cache_is_vipt_aliasing()))
+         __cpuc_flush_dcache_area(addr, (size_t)size);
+}
 
 #define ARCH_HAS_FLUSH_ANON_PAGE
 static inline void flush_anon_page(struct vm_area_struct *vma,