diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-03-26 17:24:34 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-03-26 17:24:34 +0000 |
commit | 647d591871a5b84dc0a5b16349722565a45f3c53 (patch) | |
tree | e8b665217ed33e4929355cfc8114dcf8d40ce4a5 /sys/kern | |
parent | 5c8ed6b1ba929d643628032d6d808b6c915a7833 (diff) |
Remove cpu_wait(). It's original use was to be called from the reaper so
MD code would free resources that couldn't be freed until we were no
longer running in that processor. However, it's is unused on all
architectures since mikeb@'s tss changes on x86 earlier in the year.
ok miod@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_exit.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 0677b9ea5dd..acb41b059d4 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exit.c,v 1.82 2008/12/16 07:57:28 guenther Exp $ */ +/* $OpenBSD: kern_exit.c,v 1.83 2009/03/26 17:24:33 oga Exp $ */ /* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */ /* @@ -400,14 +400,6 @@ reaper(void) KERNEL_PROC_LOCK(curproc); /* - * Give machine-dependent code a chance to free any - * resources it couldn't free while still running on - * that process's context. This must be done before - * uvm_exit(), in case these resources are in the PCB. - */ - cpu_wait(p); - - /* * Free the VM resources we're still holding on to. * We must do this from a valid thread because doing * so may block. |