]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ppc: Fix timekeeping with HZ=250 on some Mac models
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 5 Oct 2005 07:43:40 +0000 (17:43 +1000)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 5 Oct 2005 14:33:42 +0000 (07:33 -0700)
commit1dd929d7b21f1749c838721d4b334210b88c8b66
treec7dbcdef11fd251b39d0dcab80aaae6a3bcb9439
parente9821e06b8acf35bb8b46be767de7a893b3657dc
[PATCH] ppc: Fix timekeeping with HZ=250 on some Mac models

Older Macs which uses the VIA chip timers to calibrate the timebase used
some code that wouldn't work if HZ wasn't divisible by 100...

This fixes it at least for 250.  Not totally perfect but should be
enough for now (so it at least works with the default value which is now
250).

There is still a potential issue with the core using CLOCK_TICK_RATE to
maintain xtime and CLOCK_TICK_RATE value on ppc32 is pure crap, but that
is a different problem, this patch at least brings us back to our
previous situation.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/platforms/pmac_time.c