From owner-cvs-all Wed Feb 5 16:49:46 2003 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 DCBF537B401; Wed, 5 Feb 2003 16:49:43 -0800 (PST) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 889B043FA3; Wed, 5 Feb 2003 16:49:42 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id BB15951987; Thu, 6 Feb 2003 11:19:40 +1030 (CST) Date: Thu, 6 Feb 2003 11:19:40 +1030 From: Greg 'groggy' Lehey To: Poul-Henning Kamp Cc: all-committers@FreeBSD.org, legacy-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/i386/include clock.h src/sys/i386/i386 tsc.c Message-ID: <20030206004940.GH26321@wantadilla.lemis.com> References: <200302050920.h159KeQ1048771@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302050920.h159KeQ1048771@repoman.freebsd.org> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wednesday, 5 February 2003 at 1:20:40 -0800, Poul-Henning Kamp wrote: > phk 2003/02/05 01:20:40 PST > > Modified files: > sys/i386/include clock.h > sys/i386/i386 tsc.c > Log: > i386/i386/tsc.c was repo-copied from i386/isa/clock.c. > > Remove all the stuff that does not relate to the TSC. > > Change the calibration to use DELAY(1000000) rather than trying to check > it against the CMOS RTC, this drastically increases precision: > > Using 25 samples on a Athlon 700MHz UP machine I find: > > stddev min max average > CMOS 22200 Hz -74980 Hz 34301 Hz 704928721 Hz > DELAY 1805 Hz -1984 Hz 2678 Hz 704937583 Hz > > (The difference between the two averages is not statistically significant.) Does this get rid of the "microuptime went backwards" problem? Greg -- See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message