[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help in finding the cycle counter for mips and mipsel



James A. Treacy wrote:
> On Tue, May 06, 2003 at 10:08:43PM -0400, James A. Treacy wrote:
> > 
> > If you know how, could you tell me how to access the cycle counter on
> > those newer chips? I would like to send the information upstream and
> > include it with the Debian package for those who would like to compile
> > fftw3 themselves.
> 
> One other thing I forgot. Is there a compile time variable (if that
> is the right term for them) that can be used to tell if you are on a
> machine that has a cycle counter?

You could parse the output of /proc/cpuinfo, I guess.
Not sure if this info is also available as sysctl, but probably yes.

Regards,

	Joey

-- 
We all know Linux is great... it does infinite loops in 5 seconds.
        -- Linus Torvalds



Reply to: