All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gerards <mgerards@xs4all.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Higher resolution timers
Date: Fri, 23 May 2008 13:55:21 +0200	[thread overview]
Message-ID: <87bq2x8cba.fsf@xs4all.nl> (raw)
In-Reply-To: <20080520104646.18dfaf47@gibibit.com> (Colin D. Bennett's message of "Tue, 20 May 2008 10:46:46 -0700")

Colin D Bennett <colin@gibibit.com> writes:

> On Mon, 12 May 2008 09:33:54 -0700
> Colin D Bennett <colin@gibibit.com> 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







  reply	other threads:[~2008-05-23 11:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-12 16:33 Higher resolution timers Colin D Bennett
2008-05-14 16:26 ` Vesa Jääskeläinen
2008-05-18 16:27 ` Vesa Jääskeläinen
2008-05-20 17:20   ` Colin D Bennett
2008-05-20 17:46 ` Colin D Bennett
2008-05-23 11:55   ` Marco Gerards [this message]
2008-05-23 14:28     ` Colin D Bennett
2008-05-24  9:23       ` Marco Gerards
2008-05-28 13:43         ` Robert Millan
2008-05-23 11:48 ` Marco Gerards
2008-05-24 15:25   ` Vesa Jääskeläinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bq2x8cba.fsf@xs4all.nl \
    --to=mgerards@xs4all.nl \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.