linux-mips
[Top] [All Lists]

Re: [PATCH][respin] pnx8550: fix system timer support

To: danieljlaird@hotmail.com
Subject: Re: [PATCH][respin] pnx8550: fix system timer support
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Wed, 03 Jan 2007 22:57:13 +0900 (JST)
Cc: linux-mips@linux-mips.org
In-reply-to: <8127168.post@talk.nabble.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <8124491.post@talk.nabble.com> <20070103.010650.25910215.anemo@mba.ocn.ne.jp> <8127168.post@talk.nabble.com>
Sender: linux-mips-bounce@linux-mips.org
On Tue, 2 Jan 2007 09:17:32 -0800 (PST), Daniel Laird 
<danieljlaird@hotmail.com> wrote:
> Thanks, thats the build problem removed, I now have a kernel that builds
> properly! (issues 1 and 2 appear to be closed)
> Only issue remaining is that I still have a long hang (10 seconds ish) 
> after this
> Memory: 53540k/57344k available (2156k kernel code, 3744k reserved, 383k
> data, 128k init, 0k highmem)
>  I am investigating but any help is appreciated...

Does this patch (on top of Vitaly's patch) solve remaining problem?

diff --git a/arch/mips/philips/pnx8550/common/time.c 
b/arch/mips/philips/pnx8550/common/time.c
index 08ebc3d..9d9fc71 100644
--- a/arch/mips/philips/pnx8550/common/time.c
+++ b/arch/mips/philips/pnx8550/common/time.c
@@ -80,6 +80,7 @@ void pnx8550_time_init(void)
         */
        mips_hpt_frequency = 27UL * ((1000000UL * n)/(m * pow2p));
        cpj = (mips_hpt_frequency + HZ / 2) / HZ;
+       write_c0_count(0);
        timer_ack();
 
        /* Setup Timer 2 */

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