Commit 9a06c3b1 authored by Adrian Cox's avatar Adrian Cox Committed by Paul Mackerras

[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: default avatarAdrian Cox <adrian@humboldt.co.uk>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 35af89eb
...@@ -78,7 +78,7 @@ static int __devinit start_contest(int cmd, long offset, int num) ...@@ -78,7 +78,7 @@ static int __devinit start_contest(int cmd, long offset, int num)
{ {
int i, score=0; int i, score=0;
u64 tb; u64 tb;
long mark; u64 mark;
tbsync->cmd = cmd; tbsync->cmd = cmd;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment