cvs commit: src/sys/net bpf.c

M. Warner Losh imp at bsdimp.com
Wed Jul 26 14:47:50 UTC 2006


In message: <200607252123.aa75409 at salmon.maths.tcd.ie>
            David Malone <dwmalone at maths.tcd.ie> writes:
: > I'm not sure I know what you mean by "trivial timecounter", but the
: > only reason we don't have a way to deregister a timecounter yet is
: > that so far I'm probably the only one who have ever need it :-)
: 
: I was thinking about this recently too actually, as I was going to
: see how good the 64 bit counter on ath cards was in comparison to
: other things that were available. I'm not sure how much complexity
: a timecounter that could vanish at any moment would introduce - I
: didn't get that far yet.

I wrote a time counter and driver for the AT91RM9200 based on a 16-bit
counter that could also be used to timestamp a pps in about a day.
Timecounters are trivial to implement, assuming that you can read a
counter atomically.

Warner


More information about the cvs-src mailing list