]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc32: Fix timebase synchronization on 32-bit powermacs
authorPaul Mackerras <paulus@samba.org>
Fri, 3 Mar 2006 10:31:25 +0000 (21:31 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 3 Mar 2006 10:31:25 +0000 (21:31 +1100)
commit655b32af3d80c54506954e6210e0dedb8f809236
tree037912efdde6c0341ea114cca0fc58e8ad68e5c4
parent2fb40ee02c7761a3a9b85fc1118138e1cffcc8fe
powerpc32: Fix timebase synchronization on 32-bit powermacs

The variable `timebase' used to transfer the current timebase value
from one cpu to the other in smp_core99_give/take_timebase was only
an unsigned long, i.e. 32 bits on 32-bit machines.  It needs to be
64 bits.  This makes it a u64, and fixes the issue reported by Kyle
Moffett, that the two cpus see wildly different values for the time
of day.

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