From: Thomas Gleixner <tglx@linutronix.de>
To: "Arve Hjønnevåg" <arve@android.com>
Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, hpa@zytor.com,
john.stultz@linaro.org, arnd@arndb.de,
linux-tip-commits@vger.kernel.org
Subject: Re: [tip:timers/core] time: Add timekeeping_inject_sleeptime
Date: Sat, 30 Apr 2011 02:23:54 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.02.1104300220040.3005@ionos> (raw)
In-Reply-To: <BANLkTin12hcs1Q=4E4REdF_-zn08EJXzvw@mail.gmail.com>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 725 bytes --]
On Fri, 29 Apr 2011, Arve Hjønnevåg wrote:
> On Fri, Apr 29, 2011 at 10:31 AM, tip-bot for John Stultz
> <john.stultz@linaro.org> wrote:
> > - set_normalized_timespec(&time,
> > - newtime + delta.tv_sec,
> > - (NSEC_PER_SEC >> 1) + delta.tv_nsec);
> > - do_settimeofday(&time);
> > + /* subtract kernel time between rtc_suspend to rtc_resume */
> > + time = timespec_sub(time, timespec_sub(newts, oldts));
>
> The delta you got from the rtc can be almost a second to long or
> short. Do you do anything to prevent these errors from accumulating?
By using the the magic crystal ball to avoid it or what do you have in
mind ?
Thanks,
tglx
next prev parent reply other threads:[~2011-04-30 0:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <tip-304529b1b6f8612ccbb4582e997051b48b94f4a4@git.kernel.org>
2011-04-29 23:28 ` Arve Hjønnevåg
2011-04-30 0:23 ` Thomas Gleixner [this message]
2011-04-30 1:12 ` Arve Hjønnevåg
2011-04-30 1:57 ` John Stultz
2011-04-30 3:30 ` Arve Hjønnevåg
2011-04-30 0:24 ` John Stultz
2011-04-30 1:07 ` Arve Hjønnevåg
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=alpine.LFD.2.02.1104300220040.3005@ionos \
--to=tglx@linutronix.de \
--cc=arnd@arndb.de \
--cc=arve@android.com \
--cc=hpa@zytor.com \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@redhat.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
all inboxes | Powered by JetHome®