How to define CLOCK_TICK_RATE in linux kernel 2.6.xx?

Arnd Bergmann arnd at arndb.de
Tue Aug 24 09:21:23 EDT 2010


On Tuesday 24 August 2010, Eric Miao wrote:
> On Tue, Aug 24, 2010 at 5:20 PM, David Yang <david.yangshuai at gmail.com> wrote:
> > Hello all,
> >
> > We have recently started to port linux 2.6.33 to a arm machine which be
> > cortex-a9 mpcore, and we found that need define CLOCK_TICK_RATE
> > (arch/arm/mach_xxx/include/mach/timex.h) to a value.
> >
> 
> It's obsoleted. Give it a fake value and go.

I would call it *almost* obsolete. Platforms that don't have their
own clocksource implementation still use it for calculating the
exact value of their time slices, and the console beep in the TTY layer
defines its pitch through this frequency.

The latter is of course a bug, it should use 1193182 Hz, independent
of CLOCK_TICK_RATE, since the frequency is now unfortunately part
of the ABI.

	Arnd



More information about the linux-arm-kernel mailing list