From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E73BDB7006 for ; Fri, 29 Jun 2012 04:30:36 +1000 (EST) Subject: Re: [PATCH v6 1/5] powerpc/85xx: implement hardware timebase sync Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Kumar Gala In-Reply-To: <1340880651.20977.83.camel@pasglop> Date: Thu, 28 Jun 2012 13:30:26 -0500 Message-Id: References: <1340706359-9455-1-git-send-email-chenhui.zhao@freescale.com> <1340748634.3732.27.camel@pasglop> <20120627102138.GB10476@localhost.localdomain> <1340797732.3732.46.camel@pasglop> <20120628033815.GA11387@localhost.localdomain> <1340880651.20977.83.camel@pasglop> To: Zhao Chenhui Cc: Scott Wood , "linuxppc-dev@lists.ozlabs.org list" , "linux-kernel@vger.kernel.org list" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Jun 28, 2012, at 5:50 AM, Benjamin Herrenschmidt wrote: > On Thu, 2012-06-28 at 11:38 +0800, Zhao Chenhui wrote: >>=20 >>=20 >> The bootloader have done a timebase sync. If we do not need KEXEC or >> HOTPLUG_CPU feature, it is unnecessary to do it again at boot time of >> kernel. I only compile the timebase sync routines >> when users enable KEXEC or HOTPLUG_CPU.=20 >=20 > Still, how much are you really saving ? Is it worth the added mess and > loss of test coverage ? >=20 > We have too many conditional stuff like that already. >=20 > Cheers, > Ben. >=20 I'd also be interested to know how long it actually takes to do time = base sync this way. Since you are freezing the timers for some period = how long does it really take between the freeze/unfreeze in = mpc85xx_give_timebase() + mpc85xx_timebase_freeze(1); ... + mpc85xx_timebase_freeze(0); You can use ATBL/U as a way to see # of cycles taken. - k=