aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2007-05-06 17:51:45 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-07 15:13:04 -0400
commit64f60841c096594b8073e408cd9b40d7d08dcfdd (patch)
tree3ad05b0b5f83d174eb2a7efdfd95d09f171aa51d /arch/um/os-Linux
parent8603ec81487a5fefbc29611ff0d635b33b6da990 (diff)
uml: speed page fault path
Give the page fault code a specialized path. There is only one page to look at, so there's no point in going into the general page table walking code. There's only going to be one host operation, so there are no opportunities for merging. So, we go straight to the pte we want, figure out what needs doing, and do it. While I was in here, I fixed the wart where the address passed to unmap was a void *, but an unsigned long to map and protect. This gives me just under 10% on a kernel build. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/os-Linux')
-rw-r--r--arch/um/os-Linux/skas/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/os-Linux/skas/mem.c b/arch/um/os-Linux/skas/mem.c
index 6cdfda807b65..af0790719b77 100644
--- a/arch/um/os-Linux/skas/mem.c
+++ b/arch/um/os-Linux/skas/mem.c
@@ -219,8 +219,8 @@ int map(struct mm_id * mm_idp, unsigned long virt, unsigned long len,
219 return ret; 219 return ret;
220} 220}
221 221
222int unmap(struct mm_id * mm_idp, void *addr, unsigned long len, int done, 222int unmap(struct mm_id * mm_idp, unsigned long addr, unsigned long len,
223 void **data) 223 int done, void **data)
224{ 224{
225 int ret; 225 int ret;
226 226