summaryrefslogtreecommitdiff
path: root/arch/xtensa/include/asm/page.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/page.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/page.h')
-rw-r--r--arch/xtensa/include/asm/page.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/include/asm/page.h b/arch/xtensa/include/asm/page.h
index abe24c6f8b2f..619a51bb0163 100644
--- a/arch/xtensa/include/asm/page.h
+++ b/arch/xtensa/include/asm/page.h
@@ -145,7 +145,7 @@ extern void copy_page(void *to, void *from);
* some extra work
*/
-#if DCACHE_WAY_SIZE > PAGE_SIZE
+#if defined(CONFIG_MMU) && DCACHE_WAY_SIZE > PAGE_SIZE
extern void clear_page_alias(void *vaddr, unsigned long paddr);
extern void copy_page_alias(void *to, void *from,
unsigned long to_paddr, unsigned long from_paddr);