diff options
author | bde <bde@FreeBSD.org> | 1995-01-21 15:34:03 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-01-21 15:34:03 +0000 |
commit | 717b884d1ee87795aa0ba726c41a38bcb662c90c (patch) | |
tree | 939776619bf6a3af1942665f743ea67549c1d11d /sys | |
parent | fefb40a4f23c34840feccc863796cfbc915d84c6 (diff) | |
download | FreeBSD-src-717b884d1ee87795aa0ba726c41a38bcb662c90c.zip FreeBSD-src-717b884d1ee87795aa0ba726c41a38bcb662c90c.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/vm_machdep.c | 11 | ||||
-rw-r--r-- | sys/i386/i386/vm_machdep.c | 11 |
2 files changed, 6 insertions, 16 deletions
diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c index bb35a55..e6c8d98 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 bb35a55..e6c8d98 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"); } |