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)
commit96c44507601d64f29b8ccc867637292e326c7019
tree1fbdb6f4a3c2d99afaa6a244161518ec78f31048
parent985990137e81ca9fd6561cd0f7d1a9695ec57d5a
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