linux-mips
[Top] [All Lists]

Re: [PATCH 1/2] [MIPS] add DECstation I/O ASIC clocksource

To: "Maciej W. Rozycki" <macro@linux-mips.org>
Subject: Re: [PATCH 1/2] [MIPS] add DECstation I/O ASIC clocksource
From: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Date: Wed, 23 Apr 2008 10:46:03 +0900
Cc: yoichi_yuasa@tripeaks.co.jp, Ralf Baechle <ralf@linux-mips.org>, linux-mips <linux-mips@linux-mips.org>
In-reply-to: <Pine.LNX.4.55.0804230135190.23679@cliff.in.clinika.pl>
Organization: TriPeaks Corporation
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20080423085140.a693b2e5.yoichi_yuasa@tripeaks.co.jp> <Pine.LNX.4.55.0804230135190.23679@cliff.in.clinika.pl>
Sender: linux-mips-bounce@linux-mips.org
Hi Maciej,

On Wed, 23 Apr 2008 01:46:16 +0100 (BST)
"Maciej W. Rozycki" <macro@linux-mips.org> wrote:

> On Wed, 23 Apr 2008, Yoichi Yuasa wrote:
> 
> > add DECstation I/O ASIC clocksource
> 
>  Thanks, I will have a look into it; reasonably soon I hope -- I'm
> updating my tree right now.  I am quite surprised you care about this 
> platform too.

I'm interested in the little endian systems ;)
 
> > +void __init dec_ioasic_clocksource_init(void)
> > +{
> > +   clocksource_dec.rating = 200;
> > +   clocksource_set_clock(&clocksource_dec, 25000000);
> > +
> > +   clocksource_register(&clocksource_dec);
> > +}
> 
>  This is not true for all systems -- the clock rate is based on the
> TURBOchannel clock and it varies across systems.  And some have no counter
> in the I/O ASIC at all (it has been added in a later revision of the 
> chip), which the old code handled albeit not in the prettiest way (by 
> chance actually, as originally I did know of the older revision).

Hmm, we should measure the clock rate.
OK, I'll update dec-ioasic clocksource.

Yoichi

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