diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-14 16:45:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-14 16:45:05 -0400 |
commit | f44c2c9e073a578b2946bcf4127ffb041ee765b8 (patch) | |
tree | bc50359ad77181dc1fe83be10e7af83ecc9114ee | |
parent | 2cf4d4514d5b43c1f3b64bd0ec8b9853bde8f1dc (diff) | |
parent | 73be1591579084a8103a7005dd3172f3e9dd7362 (diff) |
Merge master.kernel.org:/home/rmk/linux-2.6-arm
* master.kernel.org:/home/rmk/linux-2.6-arm:
[ARM] 5545/2: add flush_kernel_dcache_page() for ARM
-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) \ |