[Top] [All Lists]

Re: What is the right way to setup MIPS timer irq in 2.6.29?

Subject: Re: What is the right way to setup MIPS timer irq in 2.6.29?
From: David Wuertele <>
Date: Thu, 9 Apr 2009 20:01:43 +0000 (UTC)
Original-recipient: rfc822;
References: <>
User-agent: Loom/3.14 (
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:

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

I think I might not need the CEVT components... I'm going to look into that
next.  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


<Prev in Thread] Current Thread [Next in Thread>