[POWERPC] Fix wraparound problem in smp-tbsync on 32-bit
authorAdrian Cox <adrian@humboldt.co.uk>
Fri, 17 Nov 2006 14:35:48 +0000 (14:35 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Dec 2006 09:39:35 +0000 (20:39 +1100)
commit9a06c3b176976919e223844f8ed9f1acae20b433
treea211fa3933f47fee664b0f908de35f2b7245bf30
parent35af89eb491a0741005e474626053266e6e635b7
[POWERPC] Fix wraparound problem in smp-tbsync on 32-bit

The patch below fixes an arithmetic wrap-around issue on 32bit machines
using smp-tbsync. Without this patch a timebase value over
0x000000007fffffff will hang the boot process while bringing up
secondary CPUs.

Signed-off-by: Adrian Cox <adrian@humboldt.co.uk>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/smp-tbsync.c