diff options
author | Bruce Evans <bde@FreeBSD.org> | 1999-02-25 11:03:08 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1999-02-25 11:03:08 +0000 |
commit | 1b0b259ed2aac750b7ffd0d97386bb75293b5d37 (patch) | |
tree | 16c8b980b3143e44646fbaadeea31e773fcd1976 /sys/kern/init_main.c | |
parent | 5c3d6cdb69d4af641ab7af500ef44f95aa875034 (diff) | |
download | src-1b0b259ed2aac750b7ffd0d97386bb75293b5d37.tar.gz src-1b0b259ed2aac750b7ffd0d97386bb75293b5d37.zip |
Don't forget to update `switchticks' in corner cases (except for
the alpha fork_trampoline(), forget it because it I believe it is
only necessary for the unsupported SMP case).
Notes
Notes:
svn path=/head/; revision=44256
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index d8e5ef6fc9bf..26901129f1e9 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.108 1999/02/17 21:03:14 luoqi Exp $ + * $Id: init_main.c,v 1.109 1999/02/19 14:25:34 luoqi Exp $ */ #include "opt_devfs.h" @@ -490,14 +490,13 @@ proc0_post(dummy) struct timespec ts; /* - * Now can look at time, having had a chance to verify the time - * from the file system. Reset p->p_runtime as it may have been - * munched in mi_switch() after the time got set. Set - * p->p_switchtime to be consistent with this unmunching. + * Now we can look at the time, having had a chance to verify the + * time from the file system. Pretend that proc0 started now. */ microtime(&proc0.p_stats->p_start); proc0.p_runtime = 0; microuptime(&proc0.p_switchtime); + switchticks = ticks; /* * Give the ``random'' number generator a thump. |