diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-26 20:05:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-26 20:05:10 -0500 |
commit | f24407d2bde27a4eb75ce5e52069bf4f1ba0e8a5 (patch) | |
tree | 6ad6dbc0b3d394435615b5e53b7d2ab3bde4c354 /arch/arm/include | |
parent | 654451748b779b28077d9058442d0f354251870d (diff) | |
parent | 73c77e2ccc14413c232c3e0b3aa43a0c4b72ec70 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/xfs-vipt
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/xfs-vipt:
xfs: fix xfs to work with Virtually Indexed architectures
sh: add mm API for DMA to vmalloc/vmap areas
arm: add mm API for DMA to vmalloc/vmap areas
parisc: add mm API for DMA to vmalloc/vmap areas
mm: add coherence API for DMA to vmalloc/vmap areas
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/cacheflush.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h index 8113bb5fb66e..5fe4a2ad7fa3 100644 --- a/arch/arm/include/asm/cacheflush.h +++ b/arch/arm/include/asm/cacheflush.h | |||
@@ -447,6 +447,16 @@ static inline void __flush_icache_all(void) | |||
447 | : "r" (0)); | 447 | : "r" (0)); |
448 | #endif | 448 | #endif |
449 | } | 449 | } |
450 | static inline void flush_kernel_vmap_range(void *addr, int size) | ||
451 | { | ||
452 | if ((cache_is_vivt() || cache_is_vipt_aliasing())) | ||
453 | __cpuc_flush_dcache_area(addr, (size_t)size); | ||
454 | } | ||
455 | static inline void invalidate_kernel_vmap_range(void *addr, int size) | ||
456 | { | ||
457 | if ((cache_is_vivt() || cache_is_vipt_aliasing())) | ||
458 | __cpuc_flush_dcache_area(addr, (size_t)size); | ||
459 | } | ||
450 | 460 | ||
451 | #define ARCH_HAS_FLUSH_ANON_PAGE | 461 | #define ARCH_HAS_FLUSH_ANON_PAGE |
452 | static inline void flush_anon_page(struct vm_area_struct *vma, | 462 | static inline void flush_anon_page(struct vm_area_struct *vma, |