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: Tue, 20 Apr 2004 16:25:00 -0700 [thread overview]
Message-ID: <20040420162500.H22846@mvista.com> (raw)
In-Reply-To: <Pine.LNX.4.55.0404201522220.28193@jurand.ds.pg.gda.pl>; from macro@ds2.pg.gda.pl on Tue, Apr 20, 2004 at 03:41:32PM +0200
On Tue, Apr 20, 2004 at 03:41:32PM +0200, Maciej W. Rozycki wrote:
> On Mon, 19 Apr 2004, Jun Sun wrote:
>
> > Solution
> > --------
> >
> > All the boards that I am really concerned right now have cpu count/compare
> > registers. I believe this will even more so in the future.
> >
> > Therefore I like to propose a separate time support for systems that use
> > cpu timer as their system timer.
> >
> > As you can see from the patch, the new code is much simpler.
>
> 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 .... :)
> 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.
BTW, I plan to submit MIPS/HRT support based on the cpu-timer patch. Hopefully
this will catch more attention to the cpu timer patch....
Jun
next prev parent reply other threads:[~2004-04-20 23:25 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 [this message]
2004-04-21 3:39 ` Stanislaw Skowronek
2004-04-21 13:19 ` Maciej W. Rozycki
2004-04-21 17:26 ` Jun Sun
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=20040420162500.H22846@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox