powerpc: Fix bug in timebase synchronization on 32-bit SMP powermac
authorPaul Mackerras <paulus@samba.org>
Sat, 19 Nov 2005 10:24:55 +0000 (21:24 +1100)
committerPaul Mackerras <paulus@samba.org>
Sat, 19 Nov 2005 10:24:55 +0000 (21:24 +1100)
commit54c4e6b5fee0347ab81e2c2fe4239c455c3422ae
tree4487d2642ecd1ccdf7ccdb6202780507fa95b5da
parent0212ddd839470f7a54cccccbaecd4833b4123da2
powerpc: Fix bug in timebase synchronization on 32-bit SMP powermac

We were using udelay in the loop on the primary cpu waiting for the
secondary cpu to take the timebase value.  Unfortunately now that
udelay uses the timebase, and the timebase is stopped at this point,
the udelay never terminated.  This fixes it by not using udelay, and
increases the number of loops before we time out to compensate.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/powermac/smp.c