Browse Source

sh: Fix copy_{to,from}_user_page() with cache disabled.

Signed-off-by: Heiko Schocher <heiko.schocher@invitel.hu>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Heiko Schocher 17 years ago
parent
commit
0349337467
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/asm-sh/cacheflush.h

+ 1 - 1
include/asm-sh/cacheflush.h

@@ -43,7 +43,7 @@ extern void __flush_purge_region(void *start, int size);
 extern void __flush_invalidate_region(void *start, int size);
 #endif
 
-#ifdef CONFIG_CPU_SH4
+#if defined(CONFIG_CPU_SH4) && !defined(CONFIG_CACHE_OFF)
 extern void copy_to_user_page(struct vm_area_struct *vma,
 	struct page *page, unsigned long vaddr, void *dst, const void *src,
 	unsigned long len);