summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-02-22 13:32:01 +0000
committerphk <phk@FreeBSD.org>2002-02-22 13:32:01 +0000
commitfa959f1afd26bbeab46d956b15e7f7a25a23c30e (patch)
treee5ecf3d25102e8c345e8b21cabef4d87489b8437 /sys/kern/init_main.c
parent6beb5af66cdd422d033e8a94de23a35073864d0e (diff)
downloadFreeBSD-src-fa959f1afd26bbeab46d956b15e7f7a25a23c30e.zip
FreeBSD-src-fa959f1afd26bbeab46d956b15e7f7a25a23c30e.tar.gz
Convert p->p_runtime and PCPU(switchtime) to bintime format.
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 2bbedb0..6b698e4 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -416,7 +416,8 @@ proc0_post(void *dummy __unused)
sx_slock(&allproc_lock);
LIST_FOREACH(p, &allproc, p_list) {
microtime(&p->p_stats->p_start);
- p->p_runtime = 0;
+ p->p_runtime.sec = 0;
+ p->p_runtime.frac = 0;
}
sx_sunlock(&allproc_lock);
microuptime(PCPU_PTR(switchtime));
OpenPOWER on IntegriCloud