From: Marko Rauhamaa <marko@pacujo.net>
To: linux-kernel@vger.kernel.org
Subject: Is the clockevent resolution fine-grained enough?
Date: 01 Mar 2007 18:34:44 -0800 [thread overview]
Message-ID: <m3649kweyj.fsf@elektro.pacujo.net> (raw)
It would appear the new clockevent API has a one-nanosecond resolution.
It certainly looks sufficiently fine-grained, but I'm afraid it's too
coarse for some applications.
In our application, we need periodic clock interrupts at about 100 kHz.
If the (programmable) frequency must be rounded to the nearest
nanosecond, we have a cumulative error of
100,000 * 0.5 ns/s = 50 µs/s
We need to maintain the cumulative error within, say, 1 ms/day, or
11 ns/s. (The error is not measured against real time, but between
different parts of our hardware that are run off of the same clock.)
For our needs, we have built our own "clockevent" system that has a
nominal one-femtosecond precision. The nanosecond resolution would be
sufficient if there was a way to "nudge" the next interrupt by a
nanosecond from the interrupt handler.
Marko
--
Marko Rauhamaa mailto:marko@pacujo.net http://pacujo.net/marko/
next reply other threads:[~2007-03-02 2:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-02 2:34 Marko Rauhamaa [this message]
2007-03-02 16:05 ` Thomas Gleixner
2007-03-02 17:24 ` Marko Rauhamaa
2007-03-02 21:04 ` Henrique de Moraes Holschuh
2007-03-03 8:54 ` Thomas Gleixner
2007-03-04 2:46 ` Marko Rauhamaa
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=m3649kweyj.fsf@elektro.pacujo.net \
--to=marko@pacujo.net \
--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®