public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Dag-Erling Smørgrav" <des@linpro.no>
To: mgross@linux.intel.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC+PATCH] RTC calibration
Date: Tue, 11 Sep 2007 18:28:06 +0200	[thread overview]
Message-ID: <ujrwsux1815.fsf@false.linpro.no> (raw)
In-Reply-To: <20070911152323.GA17650@linux.intel.com> (Mark Gross's message of "Tue, 11 Sep 2007 08:23:23 -0700")

Mark Gross <mgross@linux.intel.com> writes:
> Is it necessary to change the rtc interface?  Can't you detect within
> your m48t59 driver that you are getting consistent time adjustments up
> or down from whats in the rtc and infer it needs speeding up or slowing
> down?

[I didn't notice this when I first replied]

Because of the RTC's low resolution and of how the calibration is
implemented in the chip, you need to sample the clock at intervals of
several hours in order to determine the direction of the required
adjustment.  Repeatedly setting the RTC to the correct time will
actually prevent correct calibration.

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no

  parent reply	other threads:[~2007-09-11 16:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-11 13:48 [RFC+PATCH] RTC calibration Dag-Erling Smørgrav
2007-09-11 14:33 ` Clemens Koller
2007-09-11 15:02   ` Dag-Erling Smørgrav
2007-09-11 15:36     ` Clemens Koller
2007-09-11 16:04       ` Dag-Erling Smørgrav
2007-09-11 19:02         ` Clemens Koller
2007-10-31 11:03         ` Pavel Machek
2007-09-11 15:23 ` Mark Gross
2007-09-11 15:51   ` Dag-Erling Smørgrav
2007-09-11 16:28   ` Dag-Erling Smørgrav [this message]
2007-09-12 10:49 ` Arne Georg Gleditsch
2007-09-12 10:59   ` Dag-Erling Smørgrav

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=ujrwsux1815.fsf@false.linpro.no \
    --to=des@linpro.no \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgross@linux.intel.com \
    /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