From owner-cvs-all Tue Nov 21 11:55:27 2000 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 CE9EA37B4D7; Tue, 21 Nov 2000 11:55:23 -0800 (PST) Received: (from markm@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA49824; Tue, 21 Nov 2000 11:55:23 -0800 (PST) (envelope-from markm@FreeBSD.org) Message-Id: <200011211955.LAA49824@freefall.freebsd.org> From: Mark Murray Date: Tue, 21 Nov 2000 11:55:23 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/include cpu.h src/sys/i386/include cpu.h src/sys/ia64/include cpu.h src/share/man/man9 get_cyclecounter.9 X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG markm 2000/11/21 11:55:23 PST Modified files: sys/alpha/include cpu.h sys/i386/include cpu.h sys/ia64/include cpu.h Added files: share/man/man9 get_cyclecounter.9 Log: Add a consistent API to a feature that most modern CPUs have; a fast counter register in-CPU. This is to be used as a fast "timer", where linearity is more important than time, and multiple lines in the linearity caused by multiple CPUs in an SMP machine is not a problem. This adds no code whatsoever to the FreeBSD kernel until it is actually used, and then as a single-instruction inline routine (except for the 80386 and 80486 where it is some more inline code around nanotime(9). Reviewed by: bde, kris, jhb Revision Changes Path 1.19 +11 -1 src/sys/alpha/include/cpu.h 1.50 +22 -1 src/sys/i386/include/cpu.h 1.6 +11 -1 src/sys/ia64/include/cpu.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message