From: David Gibson <david@gibson.dropbear.id.au>
To: linuxppc-embedded@lists.linuxppc.org
Subject: Re: 4xx - a question and a patch
Date: Thu, 6 Sep 2001 11:06:07 +1000 [thread overview]
Message-ID: <20010906110607.C20279@zax> (raw)
In-Reply-To: <3B9645EB.DC7F3A6C@mvista.com>
On Wed, Sep 05, 2001 at 11:34:03AM -0400, Dan Malek wrote:
>
> David Gibson wrote:
>
> > But when it hits zero we'll also get another timer interrupt and will
> > shortly be updating it with a corrected value. Why does it matter
> > that the value is reloaded?
>
> I don't understand the reason for this discussion. Is something
> not working correctly? If so, make it work better and send me a
> patch.
Well, there's nothing actually broken, but allowing the set_dec() in
timer_interrupt() to affect the PIT should keep the timer interrupts
from drifting too far from the time base, and hence slightly reduce
the jitter in jiffies. But, no, I don't actually have any timings or
data to confirm that that is the case. I've been running this way in
my kernel for a month or so, so it certainly doesn't break anything
badly. I'm trying to find out if my understanding of the situation is
actually correct.
And the patch:
diff -urN ../linuxppc_2_4_devel/include/asm-ppc/time.h linux-bungo/include/asm-ppc/time.h
--- ../linuxppc_2_4_devel/include/asm-ppc/time.h Wed Aug 29 10:41:56 2001
+++ linux-bungo/include/asm-ppc/time.h Thu Sep 6 11:01:04 2001
@@ -46,7 +46,7 @@
static __inline__ void set_dec(unsigned int val)
{
#if defined(CONFIG_4xx)
- return; /* Have to let it auto-reload */
+ mtspr(SPRN_PIT, val);
#elif defined(CONFIG_8xx_CPU6)
set_dec_cpu6(val);
#else
--
David Gibson | For every complex problem there is a
david@gibson.dropbear.id.au | solution which is simple, neat and
| wrong. -- H.L. Mencken
http://www.ozlabs.org/people/dgibson
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~2001-09-06 1:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-30 7:52 4xx - a question and a patch David Gibson
2001-08-30 8:54 ` HHL 2.0 Journeyman and SuSE Linux Steven Scholz
2001-08-30 16:21 ` Tom Rini
2001-08-31 7:48 ` Steven Scholz
2001-09-04 19:50 ` 4xx - a question and a patch Dan Malek
2001-09-05 1:04 ` David Gibson
2001-09-05 4:18 ` Dan Malek
2001-09-05 4:41 ` David Gibson
2001-09-05 15:34 ` Dan Malek
2001-09-06 1:06 ` David Gibson [this message]
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=20010906110607.C20279@zax \
--to=david@gibson.dropbear.id.au \
--cc=linuxppc-embedded@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).