diff options
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 41b85e2..299acbe 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -514,6 +514,7 @@ proc0_post(void *dummy __unused) struct timespec ts; struct proc *p; struct rusage ru; + struct thread *td; /* * Now we can look at the time, having had a chance to verify the @@ -529,6 +530,9 @@ proc0_post(void *dummy __unused) p->p_rux.rux_uticks = 0; p->p_rux.rux_sticks = 0; p->p_rux.rux_iticks = 0; + FOREACH_THREAD_IN_PROC(p, td) { + td->td_runtime = 0; + } } sx_sunlock(&allproc_lock); PCPU_SET(switchtime, cpu_ticks()); |