linux-mips
[Top] [All Lists]

Re: [PATCH] mips hpt cleanup: make clocksource_mips public

To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Subject: Re: [PATCH] mips hpt cleanup: make clocksource_mips public
From: Ralf Baechle <ralf@linux-mips.org>
Date: Sun, 12 Nov 2006 19:27:31 +0000
Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>, linux-mips@linux-mips.org
In-reply-to: <455774BD.6010706@ru.mvista.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20061112.001028.41198601.anemo@mba.ocn.ne.jp> <455774BD.6010706@ru.mvista.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.2.2i
On Sun, Nov 12, 2006 at 10:23:41PM +0300, Sergei Shtylyov wrote:

> >     if (!cpu_has_counter && IOASIC)
> >             /* For pre-R4k systems we use the I/O ASIC's counter.  */
> >-            mips_hpt_read = dec_ioasic_hpt_read;
> >+            clocksource_mips.read = dec_ioasic_hpt_read;
> 
>    I'd like to see clocksource_mips.name overriden there as well.

> > #endif
> > static void __init jmr3927_time_init(void)
> > {
> >-    mips_hpt_read = jmr3927_hpt_read;
> >+    clocksource_mips.read = jmr3927_hpt_read;
> 
>    And the same here as well as this is TX3927-specific timer.
...

The whole MIPS clocksource is only a stop gap solution until all platforms
have provided their own clocksource drivers.

  Ralf

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