Axe unneeded spl()'s.

This commit is contained in:
jhb 2001-05-21 18:30:50 +00:00
parent 76d662958a
commit 50d57b68fb
3 changed files with 1 additions and 10 deletions

View File

@ -570,7 +570,6 @@ vm_page_zero_idle()
static int free_rover;
static int zero_state;
vm_page_t m;
int s;
/*
* Attempt to maintain approximately 1/2 of our free pages in a
@ -592,7 +591,6 @@ vm_page_zero_idle()
return(0);
}
s = splvm();
zero_state = 0;
m = vm_page_list_find(PQ_FREE, free_rover, FALSE);
if (m != NULL && (m->flags & PG_ZERO) == 0) {
@ -613,7 +611,6 @@ vm_page_zero_idle()
zero_state = 1;
}
free_rover = (free_rover + PQ_PRIME2) & PQ_L2_MASK;
splx(s);
mtx_unlock(&vm_mtx);
return (1);
}

View File

@ -570,7 +570,6 @@ vm_page_zero_idle()
static int free_rover;
static int zero_state;
vm_page_t m;
int s;
/*
* Attempt to maintain approximately 1/2 of our free pages in a
@ -592,7 +591,6 @@ vm_page_zero_idle()
return(0);
}
s = splvm();
zero_state = 0;
m = vm_page_list_find(PQ_FREE, free_rover, FALSE);
if (m != NULL && (m->flags & PG_ZERO) == 0) {
@ -613,7 +611,6 @@ vm_page_zero_idle()
zero_state = 1;
}
free_rover = (free_rover + PQ_PRIME2) & PQ_L2_MASK;
splx(s);
mtx_unlock(&vm_mtx);
return (1);
}

View File

@ -400,7 +400,7 @@ int
exec_map_first_page(imgp)
struct image_params *imgp;
{
int s, rv, i;
int rv, i;
int initial_pagein;
vm_page_t ma[VM_INITIAL_PAGEIN];
vm_object_t object;
@ -411,7 +411,6 @@ exec_map_first_page(imgp)
}
VOP_GETVOBJECT(imgp->vp, &object);
s = splvm();
mtx_lock(&vm_mtx);
ma[0] = vm_page_grab(object, 0, VM_ALLOC_NORMAL | VM_ALLOC_RETRY);
@ -443,7 +442,6 @@ exec_map_first_page(imgp)
vm_page_protect(ma[0], VM_PROT_NONE);
vm_page_free(ma[0]);
}
splx(s);
mtx_unlock(&vm_mtx);
return EIO;
}
@ -451,7 +449,6 @@ exec_map_first_page(imgp)
vm_page_wire(ma[0]);
vm_page_wakeup(ma[0]);
splx(s);
pmap_kenter((vm_offset_t) imgp->image_header, VM_PAGE_TO_PHYS(ma[0]));
imgp->firstpage = ma[0];