summaryrefslogtreecommitdiff
path: root/arch/xtensa/include/asm/cacheflush.h
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2014-09-22 09:54:42 +0400
committerMax Filippov <jcmvbkbc@gmail.com>2014-10-21 13:28:50 +0400
commitb6cee17b7d5999ae5f9ea51643dc6ea6c3e4efd4 (patch)
tree84b097752753fb8edbd03c3147e80c1bb7ccf588 /arch/xtensa/include/asm/cacheflush.h
parentd10fa7cf3dc0b38995a691c3f4e9f90acaaa05f2 (diff)
downloadlinux-b6cee17b7d5999ae5f9ea51643dc6ea6c3e4efd4.tar.xz
xtensa: nommu: don't build most of the cache flushing code
Most cache flushing code is only relevant for MMU. Don't build it for nommu configuration. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include/asm/cacheflush.h')
-rw-r--r--arch/xtensa/include/asm/cacheflush.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/xtensa/include/asm/cacheflush.h b/arch/xtensa/include/asm/cacheflush.h
index 01438e97edc6..5f67ace97b32 100644
--- a/arch/xtensa/include/asm/cacheflush.h
+++ b/arch/xtensa/include/asm/cacheflush.h
@@ -86,7 +86,8 @@ static inline void __invalidate_icache_page_alias(unsigned long virt,
* (see also Documentation/cachetlb.txt)
*/
-#if (DCACHE_WAY_SIZE > PAGE_SIZE) || defined(CONFIG_SMP)
+#if defined(CONFIG_MMU) && \
+ ((DCACHE_WAY_SIZE > PAGE_SIZE) || defined(CONFIG_SMP))
#ifdef CONFIG_SMP
void flush_cache_all(void);
@@ -152,7 +153,7 @@ void local_flush_cache_page(struct vm_area_struct *vma,
#define flush_dcache_mmap_lock(mapping) do { } while (0)
#define flush_dcache_mmap_unlock(mapping) do { } while (0)
-#if (DCACHE_WAY_SIZE > PAGE_SIZE)
+#if defined(CONFIG_MMU) && (DCACHE_WAY_SIZE > PAGE_SIZE)
extern void copy_to_user_page(struct vm_area_struct*, struct page*,
unsigned long, void*, const void*, unsigned long);