From: David Daney <ddaney@caviumnetworks.com>
To: David Wuertele <dave+gmane@wuertele.com>
Cc: linux-mips@linux-mips.org
Subject: Re: What is the right way to setup MIPS timer irq in 2.6.29?
Date: Thu, 09 Apr 2009 15:47:05 -0700 [thread overview]
Message-ID: <49DE7AE9.9030900@caviumnetworks.com> (raw)
In-Reply-To: <loom.20090409T195344-317@post.gmane.org>
David Wuertele wrote:
> I wrote:
>
>> Has the system timer paradigm changed between 2.6.18 and 2.6.29?
>> I'm trying to update my Broadcom-based embedded system to 2.6.29,
>> and I'm running into problems getting the system timer to run.
>
> I solved my problem, though I'm still a little unclear about the reasoning.
>
> The solution was to enable these:
> CONFIG_CEVT_R4K=y
> CONFIG_CSRC_R4K=y
>
> I also had to define get_c0_compare_int() to return the system timer
> interrupt. Once I had done these things, start_kernel() calls time_init(),
> which calls mips_clockevent_init() and init_mips_clocksource().
> init_mips_clocksource() calls the init_r4k_clocksource() that was
> enabled with the new config options. Now my system clock runs like I think it
> should.
>
> I think I might not need the CEVT components... I'm going to look into that
> next.
No, you do need them. That is the source of the interrupts. Using the
standard cevt-r4k.c you get nice things like the tickless kernel all for
free.
> But I wish there was some easy to find documentation about why this
> code had to be moved into the arch/mips/cevt-*.c and arch/mips/csrc-*.c
> libraries.
>
It had to change because the entire Linux time keeping infrastructure
change to use the generic clock source and clock event system.
David Daney
next prev parent reply other threads:[~2009-04-09 22:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-08 16:57 What is the right way to setup MIPS timer irq in 2.6.29? David Wuertele
2009-04-08 22:46 ` Jon Fraser
2009-04-08 23:50 ` David Wuertele
2009-04-09 6:55 ` Brian Foster
2009-04-09 20:01 ` David Wuertele
2009-04-09 22:47 ` David Daney [this message]
2009-04-09 22:54 ` Kevin D. Kissell
2009-04-10 7:11 ` Brian Foster
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=49DE7AE9.9030900@caviumnetworks.com \
--to=ddaney@caviumnetworks.com \
--cc=dave+gmane@wuertele.com \
--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