From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Rune Torgersen <runet@innovsys.com>
Cc: linuxppc-dev@ozlabs.org, linuxppc-embedded@ozlabs.org
Subject: RE: Override timer interrupt
Date: Sat, 13 Oct 2007 08:58:14 +1000 [thread overview]
Message-ID: <1192229894.22054.29.camel@pasglop> (raw)
In-Reply-To: <DCEAAC0833DD314AB0B58112AD99B93B037D4C1B@ismail.innsys.innovsys.com>
On Fri, 2007-10-12 at 16:39 -0500, Rune Torgersen wrote:
> > From: Mark A. Greer
> > > Is there an easy way to use something other than the decrementer for
> the
> > > timer interrupt?
>
> > Check out the clocksource stuff. It let's you set up numerous clock
> > sources and set the rating of each one. You can start looking in
> > arch/powerpc/kernel/time.c for example code.
>
> Thanks I will.
> Currently our board port lives in /arch/ppc (2.6.18) but I will take a
> look in powerpc.
Beware though... there a quite a few bits in there that assume the
timebase is being used as the main timekeeping source, like the vdso.
In fact, I'm not sure what is your problem with the DEC proper as the TB
will be used ultimately and thus it shouldn't drift more than the TB
does. Can your part use an externally clocked TB ?
If not, and you still have a drift despite calibration, you can always
use NTP services to adjust timekeeping.
Ben.
next prev parent reply other threads:[~2007-10-12 22:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-12 20:43 Override timer interrupt Rune Torgersen
2007-10-12 21:30 ` Mark A. Greer
2007-10-12 21:39 ` Rune Torgersen
2007-10-12 21:55 ` Mark A. Greer
2007-10-12 22:58 ` Benjamin Herrenschmidt [this message]
2007-10-15 16:49 ` Rune Torgersen
2007-10-15 20:55 ` Benjamin Herrenschmidt
2007-10-15 21:50 ` Rune Torgersen
2007-10-15 21:58 ` Benjamin Herrenschmidt
2007-10-15 23:30 ` Paul Mackerras
-- strict thread matches above, loose matches on Subject: below --
2007-10-12 20:49 Rune Torgersen
2007-10-12 21:32 ` Mark A. Greer
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=1192229894.22054.29.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=linuxppc-embedded@ozlabs.org \
--cc=runet@innovsys.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