From owner-cvs-all@FreeBSD.ORG Wed Jul 26 14:47:50 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A1BE16A4E1; Wed, 26 Jul 2006 14:47:50 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81C7043D5A; Wed, 26 Jul 2006 14:47:49 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k6QEjEe0038895; Wed, 26 Jul 2006 08:45:15 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 26 Jul 2006 08:45:32 -0600 (MDT) Message-Id: <20060726.084532.-1350498521.imp@bsdimp.com> To: dwmalone@maths.tcd.ie From: "M. Warner Losh" In-Reply-To: <200607252123.aa75409@salmon.maths.tcd.ie> References: <11815.1153858333@critter.freebsd.dk> <200607252123.aa75409@salmon.maths.tcd.ie> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Wed, 26 Jul 2006 08:45:15 -0600 (MDT) Cc: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, csjp@FreeBSD.org, cvs-all@FreeBSD.org, phk@phk.freebsd.dk, sam@errno.com, jkim@FreeBSD.org Subject: Re: cvs commit: src/sys/net bpf.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jul 2006 14:47:50 -0000 In message: <200607252123.aa75409@salmon.maths.tcd.ie> David Malone 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