mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: john stultz <johnstul@us.ibm.com>
To: Andrew Morton <akpm@digeo.com>
Cc: Andi Kleen <ak@muc.de>, Arjan van de Ven <arjanv@redhat.com>,
	lkml <linux-kernel@vger.kernel.org>,
	David Mosberger <davidm@napali.hpl.hp.com>
Subject: Re: time interpolation hooks
Date: 17 May 2003 09:31:34 -0700	[thread overview]
Message-ID: <1053189093.27770.12.camel@laptop.cornchips.homelinux.net> (raw)
In-Reply-To: <20030516142311.3844ee97.akpm@digeo.com>

On Fri, 2003-05-16 at 14:23, Andrew Morton wrote:
> Gents, the below patch comes from David M-T, out of the ia64 tree.  It may
> be a suitable solution to the "gettimeofday goes backwards when interrupts
> were blocked" problem.
> 
> It will need per-arch support.  I'm not sure what that looks like; maybe
> David can outline what the reset/update functions should do?

Yea, I'd like to see a sample reset/update implementation as well. 

Right now in i386 land we do the compensation for lost ticks in
mark_offset_tsc/cyclone. The reason for this is that every interrupt we
only want to read the high-res timesource once in order to avoid any
atomicity issues. So all the interpolation and compensation has to
happen in the same place (or atleast using the same data).

I probaly need to spend some more time looking over this. However the
sample implementation would likely give me the "aha!" i need. 

thanks
-john



  parent reply	other threads:[~2003-05-17 16:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-16 21:23 Andrew Morton
2003-05-16 22:00 ` David Mosberger
2003-05-17  2:38   ` David S. Miller
2003-05-19 17:34     ` David Mosberger
2003-05-19 17:42       ` Arjan van de Ven
2003-05-19 18:35         ` David Mosberger
2003-05-19 18:57           ` Andrew Morton
2003-05-20  7:26             ` David Mosberger
2003-05-19 22:37       ` David S. Miller
2003-05-19 23:03         ` David Mosberger
2003-05-19 23:08           ` David S. Miller
2003-05-17  9:09 ` Arjan van de Ven
2003-05-17 16:31 ` john stultz [this message]
2003-05-17 16:37   ` john stultz

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=1053189093.27770.12.camel@laptop.cornchips.homelinux.net \
    --to=johnstul@us.ibm.com \
    --cc=ak@muc.de \
    --cc=akpm@digeo.com \
    --cc=arjanv@redhat.com \
    --cc=davidm@napali.hpl.hp.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

all inboxes | Powered by JetHome®