Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: syssrc



Module Name:    syssrc
Committed By:   sommerfeld
Date:           Mon Jun  5 21:15:23 UTC 2000

Modified Files:
        syssrc/sys/arch/i386/include: types.h
Added Files:
        syssrc/sys/arch/i386/include: rnd.h

Log Message:
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
two functions:
  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.




Home | Main Index | Thread Index | Old Index