diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2011-05-10 21:38:05 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2011-05-10 21:38:05 +0000 |
commit | 2c12eefb2876e0c05a397f3bba92fc865bb0624d (patch) | |
tree | d448cac1128201e518e3fe6062b8fd6fd86facd2 | |
parent | 1cce1de89bbb0cc0aa739ec693183d438e2ef7f5 (diff) |
Kill vm_page_lookup_freelist.
it belongs to a world order that isn't here anymore. More importantly it
has been unused for a fair while now.
ok thib@
-rw-r--r-- | sys/uvm/uvm_page.c | 19 | ||||
-rw-r--r-- | sys/uvm/uvm_page.h | 4 |
2 files changed, 2 insertions, 21 deletions
diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c index 5cd691438df..6940c23b23a 100644 --- a/sys/uvm/uvm_page.c +++ b/sys/uvm/uvm_page.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_page.c,v 1.106 2011/04/15 21:35:16 oga Exp $ */ +/* $OpenBSD: uvm_page.c,v 1.107 2011/05/10 21:38:04 oga Exp $ */ /* $NetBSD: uvm_page.c,v 1.44 2000/11/27 08:40:04 chs Exp $ */ /* @@ -1477,23 +1477,6 @@ uvm_pagecopy(struct vm_page *src, struct vm_page *dst) } /* - * uvm_page_lookup_freelist: look up the free list for the specified page - */ -int -uvm_page_lookup_freelist(struct vm_page *pg) -{ -#if VM_PHYSSEG_MAX == 1 - return (vm_physmem[0].free_list); -#else - int lcv; - - lcv = vm_physseg_find(atop(VM_PAGE_TO_PHYS(pg)), NULL); - KASSERT(lcv != -1); - return (vm_physmem[lcv].free_list); -#endif -} - -/* * uvm_pagecount: count the number of physical pages in the address range. */ psize_t diff --git a/sys/uvm/uvm_page.h b/sys/uvm/uvm_page.h index f936882425b..d3f5f0f7269 100644 --- a/sys/uvm/uvm_page.h +++ b/sys/uvm/uvm_page.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_page.h,v 1.46 2011/05/07 15:27:01 oga Exp $ */ +/* $OpenBSD: uvm_page.h,v 1.47 2011/05/10 21:38:04 oga Exp $ */ /* $NetBSD: uvm_page.h,v 1.19 2000/12/28 08:24:55 chs Exp $ */ /* @@ -256,8 +256,6 @@ void uvm_pagealloc_pg(struct vm_page *, struct uvm_object *, struct uvm_constraint_range; /* XXX move to uvm_extern.h? */ psize_t uvm_pagecount(struct uvm_constraint_range*); -int uvm_page_lookup_freelist(struct vm_page *); - #if VM_PHYSSEG_MAX == 1 /* * Inline functions for archs like the vax where function calls are expensive. |