]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix time code for 601 processors
authorPaul Mackerras <paulus@samba.org>
Sun, 23 Oct 2005 07:14:56 +0000 (17:14 +1000)
committerPaul Mackerras <paulus@samba.org>
Sun, 23 Oct 2005 07:14:56 +0000 (17:14 +1000)
commita4fc310fbbdbfada2582a888c5ef79d943d42dee
tree1fbdb6f4a3c2d99afaa6a244161518ec78f31048
parentaa4e8804eb780514a1a2e4b10c8436c41c7cb20f
powerpc: Fix time code for 601 processors

The 601 doesn't have the timebase register; instead it has an RTCL
register that counts nanoseconds and wraps at 1000000000, and an
RTCU register that counts seconds.  This makes the necessary changes
for the merged time code to use the RTCL/U registers when the kernel
is running on a 601.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/time.c
include/asm-powerpc/time.h