summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.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/kern_fork.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/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index d791302..3cd3017 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -776,8 +776,8 @@ fork_exit(callout, arg, frame)
td->td_savecrit = CRITICAL_FORK;
CTR3(KTR_PROC, "fork_exit: new proc %p (pid %d, %s)", p, p->p_pid,
p->p_comm);
- if (PCPU_GET(switchtime.tv_sec) == 0)
- microuptime(PCPU_PTR(switchtime));
+ if (PCPU_GET(switchtime.sec) == 0)
+ binuptime(PCPU_PTR(switchtime));
PCPU_SET(switchticks, ticks);
mtx_unlock_spin(&sched_lock);
OpenPOWER on IntegriCloud