From 9359d9dfca27f6abcdf30376e2d3ae616321c57e Mon Sep 17 00:00:00 2001 From: kib Date: Tue, 11 May 2010 13:33:37 +0000 Subject: [PATCH] MFC r207603 Use td_rux.rux_runtime for ki_runtime instead of redoing calculation. MFC r207659: Fix a mistake in r207603. td_rux.rux_runtime still needs conversion. git-svn-id: svn://svn.freebsd.org/base/stable/8@207917 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/kern/kern_proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index 7ede157cd..ee01b96cf 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -900,7 +900,7 @@ fill_kinfo_thread(struct thread *td, struct kinfo_proc *kp, int preferthread) kp->ki_pri.pri_user = td->td_user_pri; if (preferthread) { - kp->ki_runtime = cputick2usec(td->td_runtime); + kp->ki_runtime = cputick2usec(td->td_rux.rux_runtime); kp->ki_pctcpu = sched_pctcpu(td); kp->ki_estcpu = td->td_estcpu; } -- 2.45.0