diff options
Diffstat (limited to 'include/asm-arm/cacheflush.h')
| -rw-r--r-- | include/asm-arm/cacheflush.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/asm-arm/cacheflush.h b/include/asm-arm/cacheflush.h index 759a97b56eed..70b0fe724b62 100644 --- a/include/asm-arm/cacheflush.h +++ b/include/asm-arm/cacheflush.h | |||
| @@ -95,11 +95,7 @@ | |||
| 95 | #endif | 95 | #endif |
| 96 | 96 | ||
| 97 | #if defined(CONFIG_CPU_FEROCEON) | 97 | #if defined(CONFIG_CPU_FEROCEON) |
| 98 | # ifdef _CACHE | 98 | # define MULTI_CACHE 1 |
| 99 | # define MULTI_CACHE 1 | ||
| 100 | # else | ||
| 101 | # define _CACHE feroceon | ||
| 102 | # endif | ||
| 103 | #endif | 99 | #endif |
| 104 | 100 | ||
| 105 | #if defined(CONFIG_CPU_V6) | 101 | #if defined(CONFIG_CPU_V6) |
| @@ -410,6 +406,13 @@ extern void flush_dcache_page(struct page *); | |||
| 410 | 406 | ||
| 411 | extern void __flush_dcache_page(struct address_space *mapping, struct page *page); | 407 | extern void __flush_dcache_page(struct address_space *mapping, struct page *page); |
| 412 | 408 | ||
| 409 | static inline void __flush_icache_all(void) | ||
| 410 | { | ||
| 411 | asm("mcr p15, 0, %0, c7, c5, 0 @ invalidate I-cache\n" | ||
| 412 | : | ||
| 413 | : "r" (0)); | ||
| 414 | } | ||
| 415 | |||
| 413 | #define ARCH_HAS_FLUSH_ANON_PAGE | 416 | #define ARCH_HAS_FLUSH_ANON_PAGE |
| 414 | static inline void flush_anon_page(struct vm_area_struct *vma, | 417 | static inline void flush_anon_page(struct vm_area_struct *vma, |
| 415 | struct page *page, unsigned long vmaddr) | 418 | struct page *page, unsigned long vmaddr) |
