]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix delay functions for 601 processors
authorPaul Mackerras <paulus@samba.org>
Fri, 18 Nov 2005 02:44:17 +0000 (13:44 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 18 Nov 2005 03:08:12 +0000 (14:08 +1100)
commitebb8a1da12bf7682c147c9f7404e82cd92792534
treeb5f40628d6fd9001470aa2f9a8fa3f2ed08862c6
parentc7ea2070f038b55a89a64684bcc4a8afcd119332
powerpc: Fix delay functions for 601 processors

My earlier merge of delay.h introduced a timebase-based udelay for
32-bit machines but also broke the 601, which doesn't have the
timebase register.  This fixes it by using the 601's RTC register on
the 601, and also moves __delay() and udelay() to be out-of-line in
arch/powerpc/kernel/time.c.  These functions aren't really performance
critical, after all.

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