[Top] [All Lists]

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

To: Yoichi Yuasa <>
Subject: Re: [PATCH 1/2] [MIPS] add DECstation I/O ASIC clocksource
From: "Maciej W. Rozycki" <>
Date: Wed, 23 Apr 2008 01:46:16 +0100 (BST)
Cc: Ralf Baechle <>, linux-mips <>
In-reply-to: <>
Original-recipient: rfc822;
References: <>
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.

> +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).


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