Subject: CVS commit: syssrc
To: None <firstname.lastname@example.org>
From: Bill Sommerfeld <email@example.com>
Date: 06/05/2000 14:15:23
Module Name: syssrc
Committed By: sommerfeld
Date: Mon Jun 5 21:15:23 UTC 2000
Let rnd(4) know how to read the (pentium and higher) cycle counter:
If __HAVE_CPU_TIMESTAMP is defined, <machine/rnd.h> exists and defines
1) u_int32_t cpu_timestamp(void);
returns the 32 low order bits of a reasonably high frequency counter.
2) int cpu_havetimestamp(void);
returns non-zero if cpu_timestamp() actually works.
The timestamp counter should run at a frequency greater than 1 MHz
(otherwise, microtime would be sufficient); other than that, the exact
frequency and origin of the counter are unspecified.
To generate a diff of this commit:
cvs rdiff -r0 -r1.1 syssrc/sys/arch/i386/include/rnd.h
cvs rdiff -r1.22 -r1.23 syssrc/sys/arch/i386/include/types.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.