From: george anzinger <george@mvista.com>
To: Vincent Legoll <vlegoll@apsydev.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
high-res-timers-discourse@lists.sourceforge.net
Subject: Re: Is CLOCK_REALTIME the same as the clock under gettimeofday()
Date: Wed, 03 Apr 2002 10:44:12 -0800 [thread overview]
Message-ID: <3CAB4D7C.29DB808D@mvista.com> (raw)
In-Reply-To: <014701c1db2b$d1f537f0$820314ac@fdvlegoll01>
Vincent Legoll wrote:
>
> After reading that message from you on lkml archive, I asked me a question:
> How would you know you have drifted more than one second, if timer expires
> after a very long time ? It'll be too late...
You are right. I am still trying to figure out a sane way to do this.
I suppose we could check from time to time to see what the drift is and
redo all the nanosleep abs timers if it ever drifts more than some
value. We have to redo them when there is a gross clock set anyway, so
we do need to know how to do this.
>
> Did I misread you ? (my english is not omnipotent)
> ---------------------------------------------------------------------------
> -----
> From: george anzinger (george@mvista.com)
> Date: Wed Mar 27 2002 - 15:50:43 EST
>
> Another solution to this issue is to program the clock_nanosleep() calls
> to wake up a second or so prior to the requested time and then fine tune
> the wake up to happen as close as possible to the requested time. This
> calculation might take into account the current ntp drift rate.
--
George Anzinger george@mvista.com
High-res-timers: http://sourceforge.net/projects/high-res-timers/
Real time sched: http://sourceforge.net/projects/rtsched/
Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml
next parent reply other threads:[~2002-04-03 18:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <014701c1db2b$d1f537f0$820314ac@fdvlegoll01>
2002-04-03 18:44 ` george anzinger [this message]
2002-03-27 20:50 Is CLOCK_REALTIME the same as the clock under gettimeofday() george anzinger
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=3CAB4D7C.29DB808D@mvista.com \
--to=george@mvista.com \
--cc=high-res-timers-discourse@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=vlegoll@apsydev.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