aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-01-21 15:34:03 +0000
committerBruce Evans <bde@FreeBSD.org>1995-01-21 15:34:03 +0000
commit1a0518966d703d9b78c159d89c1e63c5176f6971 (patch)
tree939776619bf6a3af1942665f743ea67549c1d11d
parentcee6d3700d92294694d56dc65ad8e929e15c1179 (diff)
downloadsrc-1a0518966d703d9b78c159d89c1e63c5176f6971.tar.gz
src-1a0518966d703d9b78c159d89c1e63c5176f6971.zip
Don't use mi_switch() to terminate cpu_exit(). Calling it just happened to
work (mi_switch() counted the last timeslice again but this didn't affect the exiting process' rusage because the rusage has already been finalized). Remove stale comment.
Notes
Notes: svn path=/head/; revision=5771
-rw-r--r--sys/amd64/amd64/vm_machdep.c11
-rw-r--r--sys/i386/i386/vm_machdep.c11
2 files changed, 6 insertions, 16 deletions
diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c
index bb35a55ef99e..e6c8d98d233f 100644
--- a/sys/amd64/amd64/vm_machdep.c
+++ b/sys/amd64/amd64/vm_machdep.c
@@ -38,7 +38,7 @@
*
* from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91
* Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
- * $Id: vm_machdep.c,v 1.29 1994/10/08 22:19:51 phk Exp $
+ * $Id: vm_machdep.c,v 1.30 1995/01/09 16:04:40 davidg Exp $
*/
#include "npx.h"
@@ -594,13 +594,8 @@ cpu_exit(p)
#if NNPX > 0
npxexit(p);
#endif /* NNPX */
- curproc = p;
- mi_switch();
- /*
- * This is to shutup the compiler, and if swtch() failed I suppose
- * this would be a good thing. This keeps gcc happy because panic
- * is a volatile void function as well.
- */
+ cnt.v_swtch++;
+ cpu_switch(p);
panic("cpu_exit");
}
diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c
index bb35a55ef99e..e6c8d98d233f 100644
--- a/sys/i386/i386/vm_machdep.c
+++ b/sys/i386/i386/vm_machdep.c
@@ -38,7 +38,7 @@
*
* from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91
* Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
- * $Id: vm_machdep.c,v 1.29 1994/10/08 22:19:51 phk Exp $
+ * $Id: vm_machdep.c,v 1.30 1995/01/09 16:04:40 davidg Exp $
*/
#include "npx.h"
@@ -594,13 +594,8 @@ cpu_exit(p)
#if NNPX > 0
npxexit(p);
#endif /* NNPX */
- curproc = p;
- mi_switch();
- /*
- * This is to shutup the compiler, and if swtch() failed I suppose
- * this would be a good thing. This keeps gcc happy because panic
- * is a volatile void function as well.
- */
+ cnt.v_swtch++;
+ cpu_switch(p);
panic("cpu_exit");
}