summaryrefslogtreecommitdiff
path: root/arch/microblaze/include/asm/page.h
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-04-22 09:28:48 +0400
committerMichal Simek <monstr@monstr.eu>2010-05-06 13:21:58 +0400
commit43f2a6e8b122378b9ad20cd8ea449cdb38f5d829 (patch)
tree4dc5783b8c59f45d783db6fee994282bbe9b6b0d /arch/microblaze/include/asm/page.h
parent21e1c93631e027136ea4070e7bca600c4ad4f391 (diff)
downloadlinux-43f2a6e8b122378b9ad20cd8ea449cdb38f5d829.tar.xz
microblaze: Remove "cache" optimized copy_page function
Current implementation doesn't handle dcache_line_length correctly that's why is better to use generic memcpy. Cache optimized function could be good way howto improve performance but must be based on benchmarking not blind function like this. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include/asm/page.h')
-rw-r--r--arch/microblaze/include/asm/page.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/microblaze/include/asm/page.h b/arch/microblaze/include/asm/page.h
index 2dd1d04129e0..7b9ba8f145ea 100644
--- a/arch/microblaze/include/asm/page.h
+++ b/arch/microblaze/include/asm/page.h
@@ -71,13 +71,11 @@ typedef unsigned long pte_basic_t;
#endif /* CONFIG_MMU */
# ifndef CONFIG_MMU
-# define copy_page(to, from) memcpy((to), (from), PAGE_SIZE)
# define get_user_page(vaddr) __get_free_page(GFP_KERNEL)
# define free_user_page(page, addr) free_page(addr)
-# else /* CONFIG_MMU */
-extern void copy_page(void *to, void *from);
# endif /* CONFIG_MMU */
+# define copy_page(to, from) memcpy((to), (from), PAGE_SIZE)
# define clear_page(pgaddr) memset((pgaddr), 0, PAGE_SIZE)
# define clear_user_page(pgaddr, vaddr, page) memset((pgaddr), 0, PAGE_SIZE)