From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.humboldt.co.uk (mail.humboldt.co.uk [80.68.93.146]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 521DB67BBC for ; Sat, 18 Nov 2006 02:06:52 +1100 (EST) Subject: [PATCH] smp-tbsync on 32-bit From: Adrian Cox To: Paul Mackerras Content-Type: text/plain Date: Fri, 17 Nov 2006 14:35:48 +0000 Message-Id: <1163774148.9390.34.camel@localhost.localdomain> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 --- 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