diff options
author | bde <bde@FreeBSD.org> | 1999-02-28 10:53:29 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-02-28 10:53:29 +0000 |
commit | 6d8d63664b85d83414c7e28ee8e59af676bfa952 (patch) | |
tree | 687f7f8e1cfdf77b73db2ec7f83acef1a466639a /sys/kern/init_main.c | |
parent | a9ceb881dea24247c4222bdca9665ff11872a2e6 (diff) | |
download | FreeBSD-src-6d8d63664b85d83414c7e28ee8e59af676bfa952.zip FreeBSD-src-6d8d63664b85d83414c7e28ee8e59af676bfa952.tar.gz |
Removed all traces of `p_switchtime'. The relevant timestamp is per-cpu,
not per-process. Keep it in `switchtime' consistently.
It is now clear that the timestamp is always valid in fork_trampoline()
except when the child is running on a previously idle cpu, which
can only happen if there are multiple cpus, so don't check or set
the timestamp in fork_trampoline except in the (i386) SMP case.
Just remove the alpha code for setting it unconditionally, since
there is no SMP case for alpha and the code had rotted.
Parts reviewed by: dfr, phk
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 2690112..671bfb7 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * @(#)init_main.c 8.9 (Berkeley) 1/21/94 - * $Id: init_main.c,v 1.109 1999/02/19 14:25:34 luoqi Exp $ + * $Id: init_main.c,v 1.110 1999/02/25 11:03:08 bde Exp $ */ #include "opt_devfs.h" @@ -495,7 +495,7 @@ proc0_post(dummy) */ microtime(&proc0.p_stats->p_start); proc0.p_runtime = 0; - microuptime(&proc0.p_switchtime); + microuptime(&switchtime); switchticks = ticks; /* |