CLOCK_TICK_RATE

2 messages, 2 authors, 2005-08-11 · open the first message on its own page

CLOCK_TICK_RATE

From: Rune Torgersen <hidden>
Date: 2005-08-11 15:13:25

Hi

I have found that I need to set CLOCK_TICK_RATE (currently defined in
include/asm-ppc/timex.h) to something else.
Right now it is set to the PC timer clock value (1193180Hz). I need to
set it to the frequency of my decrementer instead (busfreq/4)

Right now the value of theis define means the wall-clock time on ALL ppc
(and ppc64) systems that does not use the old I386 timer freqyuencly
(most all?) are using the wrong values.

How can I change this to be platform dependant?=20
The other problem is that it has to be hardcoded on compile time, but
I'm not going to worry to much about that.

Re: CLOCK_TICK_RATE

From: Andreas Schwab <hidden>
Date: 2005-08-11 16:14:51

"Rune Torgersen" [off-list ref] writes:
Hi

I have found that I need to set CLOCK_TICK_RATE (currently defined in
include/asm-ppc/timex.h) to something else.
I can't find any use of CLOCK_TICK_RATE in the kernel that is relevant for
ppc.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help