1
linux/arch/powerpc/platforms
Paul Mackerras d6a29252ad [POWERPC] Fix secondary CPU startup on old "powersurge" SMP powermacs
On the old "powersurge" SMP powermacs, the second CPU is started up
by sending it an IPI, which has the side effect of stopping the
timebase clock (so the secondary CPU's timebase can be synchronized
with the primary's).  The routine that did this used udelay, which
will hang forever when the timebase is stopped, since udelay now spins
until the timebase reaches a certain value.

The end result is that the kernel would hang when bringing up the
second CPU.  This fixes it by using a simple loop which just does a
fixed number of iterations to generate the delay.  These old systems
were all clocked at around 200 MHz or so, so a fixed number of
iterations is acceptable.

Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-10-10 13:51:00 +10:00
..
4xx ppc: Various minor compile fixes 2005-10-11 22:08:12 +10:00
8xx powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
82xx [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
83xx Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/configh 2006-10-04 09:59:57 -07:00
85xx [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
86xx [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
apus powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
cell [POWERPC] SPU fixup after irq changes 2006-10-07 22:11:17 +10:00
chrp [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
embedded6xx [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
iseries [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
maple [POWERPC] Fix Maple secondary IDE interrupt 2006-10-10 11:54:26 +10:00
pasemi [PATCH] trivial iomem annotations (arch/powerpc/platfroms/parsemi/pci.c) 2006-10-09 14:19:08 -07:00
powermac [POWERPC] Fix secondary CPU startup on old "powersurge" SMP powermacs 2006-10-10 13:51:00 +10:00
prep powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
pseries [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
Makefile [POWERPC] powerpc: PA Semi PWRficient platform support 2006-09-13 18:39:53 +10:00