Date: Tue, 21 Nov 2000 11:55:23 -0800 (PST) From: Mark Murray <markm@FreeBSD.org> 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 Message-ID: <200011211955.LAA49824@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011211955.LAA49824>
