From owner-cvs-src@FreeBSD.ORG Fri Sep 21 04:10:24 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 112C516A418; Fri, 21 Sep 2007 04:10:24 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0955C13C43E; Fri, 21 Sep 2007 04:10:24 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l8L4ANOp044031; Fri, 21 Sep 2007 04:10:23 GMT (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l8L4ANB5044030; Fri, 21 Sep 2007 04:10:23 GMT (envelope-from jeff) Message-Id: <200709210410.l8L4ANB5044030@repoman.freebsd.org> From: Jeff Roberson Date: Fri, 21 Sep 2007 04:10:23 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern kern_fork.c kern_proc.c sched_4bsd.c sched_ule.c src/sys/sys proc.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2007 04:10:24 -0000 jeff 2007-09-21 04:10:23 UTC FreeBSD src repository Modified files: sys/kern kern_fork.c kern_proc.c sched_ule.c sched_4bsd.c sys/sys proc.h Log: - Redefine p_swtime and td_slptime as p_swtick and td_slptick. This changes the units from seconds to the value of 'ticks' when swapped in/out. ULE does not have a periodic timer that scans all threads in the system and as such maintaining a per-second counter is difficult. - Change computations requiring the unit in seconds to subtract ticks and divide by hz. This does make the wraparound condition hz times more frequent but this is still in the range of several months to years and the adverse effects are minimal. Approved by: re Revision Changes Path 1.282 +1 -0 src/sys/kern/kern_fork.c 1.252 +3 -2 src/sys/kern/kern_proc.c 1.105 +20 -17 src/sys/kern/sched_4bsd.c 1.207 +5 -7 src/sys/kern/sched_ule.c 1.491 +2 -2 src/sys/sys/proc.h