How to define CLOCK_TICK_RATE in linux kernel 2.6.xx?

From
Arnd Bergmann <arnd@arndb.de>
Date
2010-08-24 13:21:23
Reply to
Eric Miao, 2010-08-24
On Tuesday 24 August 2010, Eric Miao wrote:
On Tue, Aug 24, 2010 at 5:20 PM, David Yang [off-list ref] wrote:
quoted
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
Thread (4 messages) 4 messages, 3 authors, last reply 2010-08-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help