Skip to contentSkip to conversation

smp-tbsync on 32-bit

PATCH New Adrian Cox 1 participant 1 message Nov 17, 2006 PowerPC

lore
Share & tools
lore

Adrian Cox

author
#0 lore raw

PATCH 1/1 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.

arch/powerpc/kernel/smp-tbsync.c +1 -1
@@ -78,7 +78,7 @@ static int __devinit start_contest(int c
 {
 	int i, score=0;
 	u64 tb;
-	long mark;
+	u64 mark;
 
 	tbsync->cmd = cmd;
 
Signature · 1 line
Adrian Cox <[email protected]>