diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-04-03 15:28:07 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-04-03 15:28:07 +0000 |
commit | 37a08a2790f36b4be739d4315af0b7f38149b171 (patch) | |
tree | f74d9bb8d1a815148a3df0d451902a361c66c1ed /sys/uvm/uvm_glue.c | |
parent | 7a44e77f4bf23dd036fa2d958fe9e899712218d0 (diff) |
It is unnecessary to wrap uvm_wait() in splhigh(). Also, set p_addr to NULL
when we free it; art@ ok
Diffstat (limited to 'sys/uvm/uvm_glue.c')
-rw-r--r-- | sys/uvm/uvm_glue.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/uvm/uvm_glue.c b/sys/uvm/uvm_glue.c index 03ff8844e8b..64727047753 100644 --- a/sys/uvm/uvm_glue.c +++ b/sys/uvm/uvm_glue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_glue.c,v 1.10 2001/04/02 21:43:12 niklas Exp $ */ +/* $OpenBSD: uvm_glue.c,v 1.11 2001/04/03 15:28:06 aaron Exp $ */ /* $NetBSD: uvm_glue.c,v 1.23 1999/05/28 20:49:51 thorpej Exp $ */ /* @@ -329,6 +329,7 @@ uvm_exit(p) uvmspace_free(p->p_vmspace); uvm_km_free(kernel_map, (vaddr_t)p->p_addr, USPACE); + p->p_addr = NULL; } /* @@ -467,9 +468,7 @@ loop: printf("scheduler: no room for pid %d(%s), free %d\n", p->p_pid, p->p_comm, uvmexp.free); #endif - (void) splhigh(); uvm_wait("schedpwait"); - (void) spl0(); #ifdef DEBUG if (swapdebug & SDB_FOLLOW) printf("scheduler: room again, free %d\n", uvmexp.free); |