diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/include/asm/cacheflush.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h index bb7d695f3900..1a711ea8418b 100644 --- a/arch/arm/include/asm/cacheflush.h +++ b/arch/arm/include/asm/cacheflush.h | |||
@@ -429,6 +429,14 @@ static inline void flush_anon_page(struct vm_area_struct *vma, | |||
429 | __flush_anon_page(vma, page, vmaddr); | 429 | __flush_anon_page(vma, page, vmaddr); |
430 | } | 430 | } |
431 | 431 | ||
432 | #define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE | ||
433 | static inline void flush_kernel_dcache_page(struct page *page) | ||
434 | { | ||
435 | /* highmem pages are always flushed upon kunmap already */ | ||
436 | if ((cache_is_vivt() || cache_is_vipt_aliasing()) && !PageHighMem(page)) | ||
437 | __cpuc_flush_dcache_page(page_address(page)); | ||
438 | } | ||
439 | |||
432 | #define flush_dcache_mmap_lock(mapping) \ | 440 | #define flush_dcache_mmap_lock(mapping) \ |
433 | spin_lock_irq(&(mapping)->tree_lock) | 441 | spin_lock_irq(&(mapping)->tree_lock) |
434 | #define flush_dcache_mmap_unlock(mapping) \ | 442 | #define flush_dcache_mmap_unlock(mapping) \ |