[Top] [All Lists]

Re: [PATCH][MIPS] Use CP0 Count register to implement more granular ndel

To: VomLehn <>
Subject: Re: [PATCH][MIPS] Use CP0 Count register to implement more granular ndelay
From: Ralf Baechle <>
Date: Tue, 10 Mar 2009 21:12:25 +0100
Cc: Paul Gortmaker <>,
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
User-agent: Mutt/1.5.18 (2008-05-17)
On Tue, Mar 10, 2009 at 12:18:28PM -0700, VomLehn wrote:

> > > +config CP0_COUNT_NDELAY
> > > +       bool "Use coprocessor 0 Count register for ndelay functionality"
> > > +       default n
> > 
> > Does there need to be some sort of depends here to cover off any
> > limitations where it is known that it won't work?
> I don't have the breadth of knowledge required to say what processors have
> a CP0 Count register. Any suggestions?

All MIPS III, MIPS IV, MIPS32 and MIPS64 processors have a 32-bit count
register which typically is clocked at half the maximum instruction issue
rate, more rarely at the full rate.  A few processors like the RM53230
family can select the increment rate at reset-time to either the full or
half instruction issue rate.  Others have the option of totally halting
it in special low-power, low-performance modes.  The count rate might also
be affected by clock scaling.


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