Skip to content

Commit

Permalink
[POWERPC] Fix wraparound problem in smp-tbsync on 32-bit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Cox authored and Paul Mackerras committed Dec 4, 2006
1 parent 35af89e commit 9a06c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/smp-tbsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static int __devinit start_contest(int cmd, long offset, int num)
{
int i, score=0;
u64 tb;
long mark;
u64 mark;

tbsync->cmd = cmd;

Expand Down

0 comments on commit 9a06c3b

Please sign in to comment.