From: Ralf Baechle <ralf@linux-mips.org>
To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: linux-mips@linux-mips.org
Subject: Re: plat_timer_setup, mips_timer_ack, etc.
Date: Tue, 16 Oct 2007 17:36:10 +0100 [thread overview]
Message-ID: <20071016163610.GA25794@linux-mips.org> (raw)
In-Reply-To: <20071017.005211.108739735.anemo@mba.ocn.ne.jp>
On Wed, Oct 17, 2007 at 12:52:11AM +0900, Atsushi Nemoto wrote:
> With recent clockevent conversion, for typical r4k counter timer,
> setup_irq() for the timer interrupt is called three times.
>
> 1. from time_init() (#ifdef CONFIG_IRQ_CPU block)
> 2. from plat_timer_setup() (arch/tx4927/common/tx4927_setup.c, for example)
> 3. from mips_clockevent_init()
>
> Which one should remain?
I would suggest the one near where the clockevent device is registered.
> Also I found mips_timer_ack and cycles_per_jiffy are not used now.
> Can we remove them entirely?
I think so. Each clockevent device should rather try to be independent
of others. What made the old timer code such a mess is that it was
desparately trying to share resources giving everybody plenty of rope ...
> Furthermore, I wonder how to disable mips_clockevent_device even if
> the CPU has r4k counter. For example, pnx8550 has the r4k counter but
> needs special mips_timer_ack and clocksource_mips.read routine. I
> suppose current time code is broken for such platforms.
PNX and the old revisions of the R4000 which have a bug where the
compare interrupt can be lost if the counter is read just when it has
the same value as the compare register.
Ralf
next prev parent reply other threads:[~2007-10-16 16:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-16 15:52 plat_timer_setup, mips_timer_ack, etc Atsushi Nemoto
2007-10-16 16:36 ` Ralf Baechle [this message]
2007-10-16 17:01 ` Atsushi Nemoto
2007-10-17 16:28 ` Ralf Baechle
2007-10-17 16:34 ` Sergei Shtylyov
2007-10-17 16:58 ` Ralf Baechle
2007-10-17 17:40 ` Ralf Baechle
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=20071016163610.GA25794@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=anemo@mba.ocn.ne.jp \
--cc=linux-mips@linux-mips.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