Hello Christoph !
Thanks for the tip.
I was just being consistent with what was there. I looked around what
would be affected
if I changed to the uint* regime (get_timecount returns a u_int and that
is implemented in
quite a few MD-files). That is a minor rototill but it would just clean
up the timecounter
area. Many of the files where timecounter parts are implemented also
contain the u_int*
strategy for other data. So maybe a global sweep of u_int* to uint would
be in order if
that is were we want to go. I currently see little value in changing
that per subsystem.
Or do we follow the strategy that new stuff uses uint* ? In that case
the change would be minor.
Best regards,
Frank
Christoph Egger wrote:
Frank Kardel wrote:
Module Name: src
Committed By: kardel
Date: Sun Jun 14 13:16:32 UTC 2009
Modified Files:
src/sys/kern: kern_tc.c
src/sys/sys: timepps.h
Log Message:
Make PPS work with fast time counters (> 2GHz)
by making the pps count time stamp and the update
time stamp u_int64.
The time delta between two PPS events can now
be correctly calculated avoiding any unaccounted
for wraps with 32-bit counters.
Please use uint64_t instead of u_int64_t.
Christoph