Date: Tue, 28 Jul 1998 10:55:38 -0700 (PDT) From: Bruce Evans <bde@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/i386/i386 exception.s Message-ID: <199807281755.KAA07286@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
bde 1998/07/28 10:55:37 PDT Modified files: sys/i386/i386 exception.s Log: Set p->p_switchtime to switchtime instead of to the current time in fork_trampoline() if switchtime is valid. This fixes not accounting for the time between the previous context switch and and the current time (when the forked child starts up here) in most cases - the time is now counted in the child's runtime. I think it actually fixes all cases, and switchtime is always valid here, since there must have been a context switch just before the forked child starts up. Some code should be removed if this is correct. The check that switchtime is valid sometimes gives a false negative because the check isn't correct until the after the first context switch after the system has been up for >= 1 second. Revision Changes Path 1.54 +11 -1 src/sys/i386/i386/exception.s
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807281755.KAA07286>