public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* [PATCH] smp-tbsync on 32-bit
@ 2006-11-17 14:35 Adrian Cox
  0 siblings, 0 replies; only message in thread
From: Adrian Cox @ 2006-11-17 14:35 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev

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>

--- a/arch/powerpc/kernel/smp-tbsync.c
+++ b/arch/powerpc/kernel/smp-tbsync.c
@@ -78,7 +78,7 @@ static int __devinit start_contest(int c
 {
 	int i, score=0;
 	u64 tb;
-	long mark;
+	u64 mark;
 
 	tbsync->cmd = cmd;
 


-- 
Adrian Cox <adrian@humboldt•co.uk>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-17 15:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-17 14:35 [PATCH] smp-tbsync on 32-bit Adrian Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox