From owner-cvs-all Tue Apr 2 6:42:13 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4B58B37B423; Tue, 2 Apr 2002 06:42:03 -0800 (PST) Received: (from des@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g32Eg3M18654; Tue, 2 Apr 2002 06:42:03 -0800 (PST) (envelope-from des) Message-Id: <200204021442.g32Eg3M18654@freefall.freebsd.org> From: Dag-Erling Smorgrav Date: Tue, 2 Apr 2002 06:42:01 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys _mutex.h src/sys/kern kern_mutex.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG des 2002/04/02 06:42:01 PST Modified files: sys/sys _mutex.h sys/kern kern_mutex.c Log: Instead of get_cyclecount(9), use nanotime(9) to record acquisition and release times. Measurements are made and stored in nanoseconds but presented in microseconds, which should be sufficient for the locks for which we actually want this (those that are held long and / or often). Also, rename some variables and structure members to unit-agnostic names. Revision Changes Path 1.85 +28 -19 src/sys/kern/kern_mutex.c 1.6 +1 -1 src/sys/sys/_mutex.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message