Remove the vm page buckets mutex. As of revision 1.215 of vm/vm_page.c,

it is unused.
This commit is contained in:
Alan Cox 2002-11-02 22:39:30 +00:00
parent ce494452fe
commit 02af9de6fc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106359

View File

@ -125,7 +125,6 @@
* Associated with page of user-allocatable memory is a
* page structure.
*/
static struct mtx vm_page_buckets_mtx;
static struct vm_page **vm_page_buckets; /* Array of buckets */
static int vm_page_bucket_count; /* How big is array? */
static int vm_page_hash_mask; /* Mask for hash function */
@ -263,7 +262,6 @@ vm_page_startup(vm_offset_t starta, vm_offset_t enda, vm_offset_t vaddr)
VM_PROT_READ | VM_PROT_WRITE);
bzero((caddr_t) mapped, end - new_end);
mtx_init(&vm_page_buckets_mtx, "vm page buckets mutex", NULL, MTX_SPIN);
vm_page_buckets = (struct vm_page **)mapped;
bucket = vm_page_buckets;
for (i = 0; i < vm_page_bucket_count; i++) {