Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JzVp0-0004Cz-T7 for mharc-grub-devel@gnu.org; Fri, 23 May 2008 07:52:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JzVoz-0004C0-A2 for grub-devel@gnu.org; Fri, 23 May 2008 07:52:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JzVoy-0004Be-Cs for grub-devel@gnu.org; Fri, 23 May 2008 07:52:28 -0400 Received: from [199.232.76.173] (port=49798 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzVoy-0004BT-43 for grub-devel@gnu.org; Fri, 23 May 2008 07:52:28 -0400 Received: from smtp-vbr11.xs4all.nl ([194.109.24.31]:2064) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JzVox-0006SN-C6 for grub-devel@gnu.org; Fri, 23 May 2008 07:52:27 -0400 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id m4NBqP7n032917 for ; Fri, 23 May 2008 13:52:26 +0200 (CEST) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <20080512093354.2770e1cf@gibibit.com> <20080520104646.18dfaf47@gibibit.com> Mail-Copies-To: mgerards@xs4all.nl Date: Fri, 23 May 2008 13:55:21 +0200 In-Reply-To: <20080520104646.18dfaf47@gibibit.com> (Colin D. Bennett's message of "Tue, 20 May 2008 10:46:46 -0700") Message-ID: <87bq2x8cba.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: Re: Higher resolution timers X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 May 2008 11:52:29 -0000 Colin D Bennett writes: > On Mon, 12 May 2008 09:33:54 -0700 > Colin D Bennett wrote: > >> I think that using the TSC (w/ RDTSC instruction) and calibrating it >> with a quick 2-3 RTC tick loop at startup might be the easiest option. > > Just wondered if something like this would be a practical way to go: Well, I only had a quick look and this might be a good way to measure the clock speed. BTW, can you please make sure you use our coding style? Are the 2-3 loops based on some calculations or only a guess? There might be a problem with using this instruction. Are clock cycles actually measured after using the "halt" instruction? If not, the use of such instruction might not generally used in GRUB :-/ -- Marco