[PATCH] possible fix for the runtime going backwards warnings

John Baldwin jhb at freebsd.org
Tue Feb 21 07:46:13 PST 2006


The latest round of calcru() changes accidentally changed calccru() to use the 
wrong rusage_ext structure (p->p_rux vs p->p_crux) when calculating usage 
times for children.  The patch fixes calccru() to use p->p_crux again.  It 
also moves the ruadd() in exit1() even later in the function so that it takes 
the dying thread's last time slice into account.  Please test it and let me 
know if it makes the messages go away (or if it makes things worse!)  Thanks!

http://www.FreeBSD.org/~jhb/patches/calccru.patch

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the freebsd-current mailing list