aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/mm/pg-nommu.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-07-27 20:53:22 +0900
committerPaul Mundt <lethal@linux-sh.org>2009-07-27 20:53:22 +0900
commitdfff0fa65ab15db45acd64b3189787d37ab163cd (patch)
treec888641a25f83fb75a4886f6c1e63c44d889fed4 /arch/sh/mm/pg-nommu.c
parent2277ab4a1df50e05bc732fe9488d4e902bb8399a (diff)
sh: wire up clear_user_highpage() for sh4, convert sh7705.
This wires up clear_user_highpage() on SH-4 and subsequently converts the SH7705 32kB cache mode over to using it. Now that the SH-4 implementation handles all of the dcache purging directly in the aliasing case, there is no need to do this in the default clear_page() implementation. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/pg-nommu.c')
-rw-r--r--arch/sh/mm/pg-nommu.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/sh/mm/pg-nommu.c b/arch/sh/mm/pg-nommu.c
index 91ed4e695ff..7e33b486b7e 100644
--- a/arch/sh/mm/pg-nommu.c
+++ b/arch/sh/mm/pg-nommu.c
@@ -1,7 +1,7 @@
/*
* arch/sh/mm/pg-nommu.c
*
- * clear_page()/copy_page() implementation for MMUless SH.
+ * copy_page()/__copy_user()/__clear_user() implementations for MMUless SH.
*
* Copyright (C) 2003 Paul Mundt
*
@@ -20,11 +20,6 @@ void copy_page(void *to, void *from)
memcpy(to, from, PAGE_SIZE);
}
-void clear_page(void *to)
-{
- memset(to, 0, PAGE_SIZE);
-}
-
__kernel_size_t __copy_user(void *to, const void *from, __kernel_size_t n)
{
memcpy(to, from, n);