public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Dominik Brodowski <linux-JhLEnvuH02M@public.gmane.org>
To: "Grover, Andrew" <andrew.grover-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: 'Paul Richards'
	<p.a.richards-Y3tGgqFSo3OFxr2TtlUqVg@public.gmane.org>,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: gettimeofday() moving backwards
Date: Wed, 18 Dec 2002 23:40:33 +0100	[thread overview]
Message-ID: <20021218224033.GA1077@brodo.de> (raw)
In-Reply-To: <EDC461A30AC4D511ADE10002A5072CAD04C7A5BB-OU+JdkIUtvd9zuciVAfUoVDQ4js95KgL@public.gmane.org>

On Wed, Dec 18, 2002 at 01:23:57PM -0800, Grover, Andrew wrote:
> > From: Paul Richards [mailto:p.a.richards-Y3tGgqFSo3OFxr2TtlUqVg@public.gmane.org] 
> > I am using linux kernel v2.4.20 with ACPI patch dated 2002-12-05.
> > 
> > I have noticed that if my processor changes state (800Mhz up 
> > to 1200Mhz say)
> > then gettimeofday() behaves weirdly.  It runs smoothly but 
> > every now and again
> > (on the order of 10 times a second) it makes a correction.  
> > If I have gone from
> > 800Mhz to 1200Mhz then the correction is backwards, otherwise 
> > it makes a forward
> > jump..
> 
> Hmm, can you mention this on the cpufreq mailing list?
> cpufreq-1walMZg8u8rXmaaqVzeoHQ@public.gmane.org .

In kernel 2.5.5x, gettimeofday() should work fine: ACPI uses the cpufreq
infrastructure, which adds -among other things- a hunk in
arch/i386/timer/tsc.c which updates some values on frequency transitions.
(see http://www.brodo.de/cpufreq/ for details on cpufreq).

As cpufreq isn't included in 2.4. kernels, and likely never will, the 2.4.
gettimeofday() call does cause strange results in 2.4.

	Dominik




-------------------------------------------------------
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart Putty.
T H I N K G E E K . C O M       http://www.thinkgeek.com/sf/

  parent reply	other threads:[~2002-12-18 22:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-18 21:23 gettimeofday() moving backwards Grover, Andrew
     [not found] ` <EDC461A30AC4D511ADE10002A5072CAD04C7A5BB-OU+JdkIUtvd9zuciVAfUoVDQ4js95KgL@public.gmane.org>
2002-12-18 22:40   ` Dominik Brodowski [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-12-19 10:01 Herbert Nachtnebel
     [not found] ` <B900970C7DD9474C972986EB3EC7C58F0D404F-PWLG29+z7hEKeIAE67mlpo2P0GrZ+RbP@public.gmane.org>
2002-12-19 11:39   ` Ducrot Bruno
2002-12-18 19:53 Paul Richards
     [not found] ` <1040241199.3e00d22fe594b-Y3tGgqFSo3OFxr2TtlUqVg@public.gmane.org>
2002-12-19  0:09   ` Pavel Machek

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=20021218224033.GA1077@brodo.de \
    --to=linux-jhlenvuh02m@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=andrew.grover-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=p.a.richards-Y3tGgqFSo3OFxr2TtlUqVg@public.gmane.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