From: Jun Sun <jsun@mvista.com>
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Cc: linux-mips@linux-mips.org, jsun@mvista.com
Subject: Re: [RFC] Separate time support for using cpu timer
Date: Wed, 21 Apr 2004 10:26:39 -0700 [thread overview]
Message-ID: <20040421102639.G32072@mvista.com> (raw)
In-Reply-To: <Pine.LNX.4.55.0404211445470.28167@jurand.ds.pg.gda.pl>; from macro@ds2.pg.gda.pl on Wed, Apr 21, 2004 at 03:19:45PM +0200
On Wed, Apr 21, 2004 at 03:19:45PM +0200, Maciej W. Rozycki wrote:
> On Tue, 20 Apr 2004, Jun Sun wrote:
>
> > > It makes it separate again -- more maintenance burden and a bigger
> > > opportunity to have functional divergence, sigh...
> >
> > Pretty much true for lots of improvement we made in the past a couple of
> > years .... :)
>
> Hmm, s/improvement/hacks/, perhaps?
>
> > > Additionally I don't think using the CP0 Count & Compare registers for
> > > the system timer is the way to go. It's rather a way to escape when
> > > there's no other possibility. A lot of systems have a reliable external
> > > timer interrupt source and using it actually would free the CP0 registers
> > > for other uses, like profiling or a programmable interval timer.
> >
> > I was rather neutral on this point until I started to add HRT/VST support to
> > MIPS. When adding such features you really just want one common timer code.
> > And the best choice for MIPS is cpu timer.
>
> Well, with the _hpt_ abstraction layer you have one common timer code,
> regardless of the actual timer hardware used. If there's some
> functionality you miss there, we may discuss about possible solutions.
>
Current high resolution timer code calls for two logic timers, one for
the old jiffy timer and one for intra-jiffy timer interrupt.
Even if you can extend hpt interface to accomondate this, each board
would still end up implementing a lot of complex code.
With cpu timer, however, we can "multiplex" the same timer to
emulate both logical timers. All boards using cpu timer can have HRT without
any code change.
Jun
prev parent reply other threads:[~2004-04-21 17:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-20 1:07 [RFC] Separate time support for using cpu timer Jun Sun
2004-04-20 13:41 ` Maciej W. Rozycki
2004-04-20 23:25 ` Jun Sun
2004-04-21 3:39 ` Stanislaw Skowronek
2004-04-21 13:19 ` Maciej W. Rozycki
2004-04-21 17:26 ` Jun Sun [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=20040421102639.G32072@mvista.com \
--to=jsun@mvista.com \
--cc=linux-mips@linux-mips.org \
--cc=macro@ds2.pg.gda.pl \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.