public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@muc.de>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Vojtech Pavlik <vojtech@suse.cz>,
	Rusty Russell <rusty@rustcorp.com.au>,
	lkml - Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Turn rdmsr, rdtsc into inline functions, clarify names
Date: 7 Aug 2006 17:01:08 +0200
Date: Mon, 7 Aug 2006 17:01:08 +0200	[thread overview]
Message-ID: <20060807150108.GB85602@muc.de> (raw)
In-Reply-To: <d120d5000608070632p7452ed72ja92b1eb3673372f8@mail.gmail.com>

On Mon, Aug 07, 2006 at 09:32:29AM -0400, Dmitry Torokhov wrote:
> On 8/7/06, Andi Kleen <ak@muc.de> wrote:
> >On Mon, Aug 07, 2006 at 02:48:55PM +0200, Vojtech Pavlik wrote:
> >> On Mon, Aug 07, 2006 at 02:28:45PM +0200, Andi Kleen wrote:
> >> > On Mon, Aug 07, 2006 at 01:09:31PM +0200, Vojtech Pavlik wrote:
> >> > > On Mon, Aug 07, 2006 at 10:48:50AM +0200, Andi Kleen wrote:
> >> > > > On Sun, Aug 06, 2006 at 10:43:44PM -0400, Dmitry Torokhov wrote:
> >> > > > > On Saturday 05 August 2006 23:16, Andi Kleen wrote:
> >> > > > > > This whole thing is broken, e.g. on a preemptive kernel when 
> >the
> >> > > > > > code can switch CPUs
> >> > > > > >
> >> > > > >
> >> > > > > Would not preempt_disable fix that?
> >> > > >
> >> > > > Partially, but you still have other problems. Please just get rid
> >> > > > of it. Why do we have timer code in the kernel if you then chose
> >> > > > not to use it?
> >> > >
> >> > > The problem is that gettimeofday() is not always fast.
> >> >
> >> > When it is not fast that means it is not reliable and then you're
> >> > also not well off using it anyways.
> >>
> >> I assume you wanted to say "When gettimeofday() is slow, it means TSC is
> >> not reliable", which I agree with.
> >>
> >> But I need, in the driver, in the no-TSC case use i/o counting, not a
> >> slow but reliable method. And I can't say, from outside the timing
> >> subsystem, whether gettimeofday() is fast or slow.
> >
> >Hmm if that is the only obstacle I can export a "slow gettimeofday" flag.
> >
> >However it would be some work to implement it for all architectures.
> >
> 
> Hmm, would it be easier to export "fast gettimeofday" and assume that
> we have slow gettimeofday by default (so gameport will fall back on io
> counting)?

I would expect fast gettimeofday to be more common than slow.

-Andi

  reply	other threads:[~2006-08-07 15:01 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1154771262.28257.38.camel@localhost.localdomain>
2006-08-06  2:38 ` [PATCH] Turn rdmsr, rdtsc into inline functions, clarify names Andi Kleen
2006-08-06  2:56   ` Rusty Russell
2006-08-06  2:58     ` H. Peter Anvin
2006-08-06  3:09       ` Rusty Russell
2006-08-06  3:11         ` H. Peter Anvin
2006-08-06  3:49           ` Rusty Russell
2006-08-06  3:16     ` Andi Kleen
2006-08-06  3:52       ` Rusty Russell
2006-08-06 14:58         ` Andi Kleen
2006-08-07  2:43       ` Dmitry Torokhov
2006-08-07  8:48         ` Andi Kleen
2006-08-07 11:09           ` Vojtech Pavlik
2006-08-07 12:28             ` Andi Kleen
2006-08-07 12:48               ` Vojtech Pavlik
2006-08-07 12:56                 ` Andi Kleen
2006-08-07 13:18                   ` Vojtech Pavlik
2006-08-07 13:32                   ` Dmitry Torokhov
2006-08-07 15:01                     ` Andi Kleen [this message]
2006-08-07 15:19                   ` Andreas Mohr
2006-08-07 15:57                     ` Andi Kleen
2006-08-07 16:04                       ` Vojtech Pavlik
2006-08-07 16:12                         ` Andi Kleen
2006-08-07 19:22                           ` Vojtech Pavlik
2006-08-14 20:13                 ` Pavel Machek
2006-08-07 11:07         ` Vojtech Pavlik

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=20060807150108.GB85602@muc.de \
    --to=ak@muc.de \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=vojtech@suse.cz \
    /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