]> Pileus Git - ~andy/linux/commit
[PATCH] ppc32: improve timebase sync for SMP
authorPaul Mackerras <paulus@samba.org>
Sat, 16 Apr 2005 22:24:16 +0000 (15:24 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:24:16 +0000 (15:24 -0700)
commit6460b4cceba0181308042c8d8794eb679bfa22e5
treea0b9f388bf205b7f0fff9f5c7f8e31dacf12be7e
parent35b535d9cc8dce79c3b72f47c4417c3159d7a8c9
[PATCH] ppc32: improve timebase sync for SMP

Currently the procedure in the ppc32 kernel that synchronizes the timebase
registers across an SMP powermac system does so by setting both timebases
to zero.  That is OK at boot but causes problems if done later.  So that we
can do hotplug CPU on these machines, this patch changes the code so it
reads the timebase from one CPU and transfers the value to the other CPU.
(Hotplug CPU is needed for sleep (aka suspend to RAM) to work.)

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/platforms/pmac_smp.c