linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dominik Brodowski <linux@dominikbrodowski.net>
To: Pierre Ossman <drzeus-list@drzeus.cx>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Jesper Juhl <jesper.juhl@gmail.com>,
	john stultz <johnstul@us.ibm.com>
Subject: Re: [Fwd: sched_clock() has poor resolution]
Date: Thu, 22 Sep 2005 22:59:45 +0200	[thread overview]
Message-ID: <20050922205945.GB30068@isilmar.linta.de> (raw)
In-Reply-To: <43325D31.3090604@drzeus.cx>

Hi,

On Thu, Sep 22, 2005 at 09:28:49AM +0200, Pierre Ossman wrote:
>  * Let sched_clock() follow the time source. Don't have it coupled to
> the TSC.
> 
>  * Init the TSC even though it isn't used for anything but sched_clock().

As pmtmr requires somewhat working TSCs, you can even use TSC if pmtmr is
used as a time source:

static int init_pmtmr(char* override)
...
        /* we use the TSC for delay_pmtmr, so make sure it exists */
        if (!cpu_has_tsc)
                return -ENODEV;
...

So at least for this case, sched_clock() can and should use TSC, not
jiffies, AFAICS.

Thanks,
	Dominik

      reply	other threads:[~2005-09-22 20:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-22  7:28 [Fwd: sched_clock() has poor resolution] Pierre Ossman
2005-09-22 20:59 ` Dominik Brodowski [this message]

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=20050922205945.GB30068@isilmar.linta.de \
    --to=linux@dominikbrodowski.net \
    --cc=drzeus-list@drzeus.cx \
    --cc=jesper.juhl@gmail.com \
    --cc=johnstul@us.ibm.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).