aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/pg-nommu.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-07-27 07:53:22 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-07-27 07:53:22 -0400
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 91ed4e695ff7..7e33b486b7e9 100644
--- a/arch/sh/mm/pg-nommu.c
+++ b/arch/sh/mm/pg-nommu.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * arch/sh/mm/pg-nommu.c 2 * arch/sh/mm/pg-nommu.c
3 * 3 *
4 * clear_page()/copy_page() implementation for MMUless SH. 4 * copy_page()/__copy_user()/__clear_user() implementations for MMUless SH.
5 * 5 *
6 * Copyright (C) 2003 Paul Mundt 6 * Copyright (C) 2003 Paul Mundt
7 * 7 *
@@ -20,11 +20,6 @@ void copy_page(void *to, void *from)
20 memcpy(to, from, PAGE_SIZE); 20 memcpy(to, from, PAGE_SIZE);
21} 21}
22 22
23void clear_page(void *to)
24{
25 memset(to, 0, PAGE_SIZE);
26}
27
28__kernel_size_t __copy_user(void *to, const void *from, __kernel_size_t n) 23__kernel_size_t __copy_user(void *to, const void *from, __kernel_size_t n)
29{ 24{
30 memcpy(to, from, n); 25 memcpy(to, from, n);