svn commit: r207603 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Tue May 4 06:00:39 UTC 2010
Author: kib
Date: Tue May 4 06:00:39 2010
New Revision: 207603
URL: http://svn.freebsd.org/changeset/base/207603
Log:
Use td_rux.rux_runtime for ki_runtime instead of redoing calculation.
Submitted by: bde
MFC after: 1 week
Modified:
head/sys/kern/kern_proc.c
Modified: head/sys/kern/kern_proc.c
==============================================================================
--- head/sys/kern/kern_proc.c Tue May 4 05:55:37 2010 (r207602)
+++ head/sys/kern/kern_proc.c Tue May 4 06:00:39 2010 (r207603)
@@ -901,7 +901,7 @@ fill_kinfo_thread(struct thread *td, str
kp->ki_pri.pri_user = td->td_user_pri;
if (preferthread) {
- kp->ki_runtime = cputick2usec(td->td_runtime);
+ kp->ki_runtime = td->td_rux.rux_runtime;
kp->ki_pctcpu = sched_pctcpu(td);
kp->ki_estcpu = td->td_estcpu;
}
More information about the svn-src-all
mailing list