summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-02-25 11:03:08 +0000
committerbde <bde@FreeBSD.org>1999-02-25 11:03:08 +0000
commitd2f1b649d7aa2437c1b52a334db341e0e551564f (patch)
treec696f522285acdae06adcb06df8aa71bd5d97e01 /sys/kern/init_main.c
parentc5a192118040bf738cd2245126a2998a102c5b00 (diff)
downloadFreeBSD-src-d2f1b649d7aa2437c1b52a334db341e0e551564f.zip
FreeBSD-src-d2f1b649d7aa2437c1b52a334db341e0e551564f.tar.gz
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).
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index d8e5ef6..2690112 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.
OpenPOWER on IntegriCloud